mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-13 14:05:06 +01:00
auto --local-package if --alternative-project is used
This commit is contained in:
parent
5e76b5b0c0
commit
367d3ce80e
@ -415,10 +415,13 @@ def main(opts, argv):
|
|||||||
|
|
||||||
pacname = pac
|
pacname = pac
|
||||||
if pacname == '_repository':
|
if pacname == '_repository':
|
||||||
|
if not opts.local_package:
|
||||||
|
try:
|
||||||
|
pacname = store_read_package(os.curdir)
|
||||||
|
except oscerr.NoWorkingCopy:
|
||||||
|
opts.local_package = True
|
||||||
if opts.local_package:
|
if opts.local_package:
|
||||||
pacname = os.path.splitext(build_descr)[0]
|
pacname = os.path.splitext(build_descr)[0]
|
||||||
else:
|
|
||||||
pacname = store_read_package(os.curdir)
|
|
||||||
if not build_root:
|
if not build_root:
|
||||||
build_root = config['build-root'] % { 'repo': repo, 'arch': arch,
|
build_root = config['build-root'] % { 'repo': repo, 'arch': arch,
|
||||||
'project' : prj, 'package' : pacname
|
'project' : prj, 'package' : pacname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user