From 296f274f67ae1466db37c7cbcd665a7e3bdacdf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Sun, 8 Mar 2009 23:43:26 +0000 Subject: [PATCH] - fixed #481208 ('osc build --local-package is completely ineffective') --- osc/build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osc/build.py b/osc/build.py index 05674ce1..496c0469 100644 --- a/osc/build.py +++ b/osc/build.py @@ -275,15 +275,16 @@ 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) - 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) if not os.path.exists(build_descr):