mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
- fallback to "build --local-package" if it does not exist instead of complaining
This commit is contained in:
parent
9c004acf34
commit
d3dd8539d9
@ -4932,11 +4932,18 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
args = self.parse_repoarchdescr(args, opts.noinit or opts.offline, opts.alternative_project)
|
args = self.parse_repoarchdescr(args, opts.noinit or opts.offline, opts.alternative_project)
|
||||||
|
|
||||||
# check for source services
|
# check for source services
|
||||||
if opts.offline or opts.local_package:
|
r = None
|
||||||
print "WARNING: source service from package or project will not be executed. This may not be the same build as on server!"
|
try:
|
||||||
elif (conf.config['local_service_run'] and not opts.noservice) and not opts.noinit:
|
if not opts.offline:
|
||||||
p = Package('.')
|
p = Package('.')
|
||||||
r = p.run_source_services(verbose=True)
|
r = p.run_source_services(verbose=True)
|
||||||
|
except:
|
||||||
|
print "WARNING: package is not existing on server yet"
|
||||||
|
opts.local_package = True
|
||||||
|
pass
|
||||||
|
if opts.offline or opts.local_package or r == None:
|
||||||
|
print "WARNING: source service from package or project will not be executed. This may not be the same build as on server!"
|
||||||
|
elif (conf.config['local_service_run'] and not opts.noservice) and not opts.noinit:
|
||||||
if r != 0:
|
if r != 0:
|
||||||
print >>sys.stderr, 'Source service run failed!'
|
print >>sys.stderr, 'Source service run failed!'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user