1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

auto --local-package if --alternative-project is used

This commit is contained in:
Ludwig Nussel 2010-04-22 09:35:58 +02:00
parent 5e76b5b0c0
commit 367d3ce80e

View File

@ -415,10 +415,13 @@ def main(opts, argv):
pacname = pac
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:
pacname = os.path.splitext(build_descr)[0]
else:
pacname = store_read_package(os.curdir)
if not build_root:
build_root = config['build-root'] % { 'repo': repo, 'arch': arch,
'project' : prj, 'package' : pacname