1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-02 09:46:16 +01:00

- do not run source services on local packages or offline builds, but warn about that

This commit is contained in:
Adrian Schröter 2011-06-15 14:16:20 +02:00
parent 6344bcc616
commit 881641d479

View File

@ -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)
# 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('.')
r = p.run_source_services(verbose=True)
if r != 0: