mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-23 14:48:53 +02:00
- fixed #481208 ('osc build --local-package is completely ineffective')
This commit is contained in:
@@ -275,14 +275,15 @@ def main(opts, argv):
|
||||
# if opts.define:
|
||||
# buildargs.append('--define "%s"' % opts.define)
|
||||
|
||||
if opts.local_package:
|
||||
pac = '_repository'
|
||||
if opts.alternative_project:
|
||||
prj = opts.alternative_project
|
||||
pac = '_repository'
|
||||
apiurl = config['apiurl']
|
||||
else:
|
||||
prj = store_read_project(os.curdir)
|
||||
if opts.local_package:
|
||||
pac = '_repository'
|
||||
else:
|
||||
pac = store_read_package(os.curdir)
|
||||
apiurl = store_read_apiurl(os.curdir)
|
||||
|
||||
|
Reference in New Issue
Block a user