mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-08 20:15:47 +01:00
- do not run source services on local packages or offline builds, but warn about that
This commit is contained in:
parent
6344bcc616
commit
881641d479
@ -4910,7 +4910,9 @@ 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 not opts.noservice and not opts.noinit:
|
if opts.offline or opts.local_package:
|
||||||
|
print "WARNING: source service from package or project will not be executed. This may not be the same build as on server!"
|
||||||
|
elif not opts.noservice and not opts.noinit:
|
||||||
p = Package('.')
|
p = Package('.')
|
||||||
r = p.run_source_services(verbose=True)
|
r = p.run_source_services(verbose=True)
|
||||||
if r != 0:
|
if r != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user