mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +01:00
Merge branch 'Issue_936' of https://github.com/e4t/osc
Do not try to run source services when building in a non package wc. This
is the behavior we had prior commit c39c3b8cae
("Cleanup the source services execution code in do_build").
There is no "sane" way to execute the source services in case of a
non package wc build because we cannot export the OBS_SERVICE_PACKAGE
env variable with a meaningful value.
Fixes: #936 ("'osc build --local-package ...' fails with 'not an osc
package working copy'")
This commit is contained in:
commit
3ed9325a15
@ -790,6 +790,9 @@ def main(apiurl, opts, argv):
|
||||
if opts.noinit:
|
||||
buildargs.append('--noinit')
|
||||
|
||||
if not is_package_dir('.'):
|
||||
opts.noservice = True
|
||||
|
||||
# check for source services
|
||||
if not opts.offline and not opts.noservice:
|
||||
p = osc.core.Package(os.curdir)
|
||||
|
Loading…
Reference in New Issue
Block a user