1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

runtime fixes for last commit

This commit is contained in:
Adrian Schröter 2010-05-22 08:55:39 +02:00
parent 6cbff920dc
commit 1e5b0e2ffb
2 changed files with 3 additions and 2 deletions

View File

@ -2435,6 +2435,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = parseargs(args)
validators = conf.config['source_validator_directory']
verbose_validation = None
if opts.skip_validation:
validators = None
elif not os.path.exists(validators):
@ -2509,7 +2510,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
single_paths.append(pac.dir)
for prj, packages in prj_paths.iteritems():
try:
Project(prj).commit(tuple(packages), msg, files, validators=validators, verbose_validation=verbose_validation)
Project(prj).commit(tuple(packages), msg=msg, files=files, validators=validators, verbose_validation=verbose_validation)
except oscerr.RuntimeError, e:
print >>sys.stderr, "ERROR: source_validator failed", e
return 1

View File

@ -682,7 +682,7 @@ class Project:
p = Package(os.path.join(self.dir, pac))
p.todo = files
print statfrmt('Sending', os.path.normpath(p.dir))
p.commit(msg, validators=validators, verbose_validation=verbose_validation)
p.commit(msg=msg, validators=validators, verbose_validation=verbose_validation)
self.set_state(pac, ' ')
os.chdir(olddir)