1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-16 05:39:27 +02:00

- handle errors of source service runs

This commit is contained in:
2011-05-24 10:49:08 +02:00
parent 0a7492cdf8
commit c00751f4d7
3 changed files with 21 additions and 5 deletions

View File

@@ -4727,9 +4727,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = self.parse_repoarchdescr(args, opts.noinit or opts.offline, opts.alternative_project)
# check for source services
if not opts.noservice and not opts.noinit and os.listdir('.').count("_service"):
if not opts.noservice and not opts.noinit:
p = Package('.')
p.run_source_services()
r = p.run_source_services()
if r != 0:
print >>sys.stderr, 'Source service run failed!'
sys.exit(1)
# that is currently unreadable on cli, we should not have a backtrace on standard errors:
#raise oscerr.ServiceRuntimeError('Service run failed: \'%s\'', r)
if conf.config['no_verify']:
opts.no_verify = True