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

- use correct package name unless --local-package is specified

This commit is contained in:
Marcus Huewe 2010-01-30 00:08:28 +01:00
parent fe6dec5410
commit 3dc4a09a29

View File

@ -355,7 +355,10 @@ def main(opts, argv):
pacname = pac
if pacname == '_repository':
pacname = os.path.splitext(build_descr)[0]
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