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