From dd1228c872a888495f05f09f465c301efb9df7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 2 Aug 2016 14:09:18 +0200 Subject: [PATCH] fix reading of local package directory in release command (osc#218) --- osc/commandline.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index f826f83a..06f5b17a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2900,10 +2900,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. raise oscerr.WrongArgs('Too many arguments.') if len(args) == 0: - if is_project_dir(os.curdir): + if is_package_dir(os.curdir): + source_project = store_read_project(os.curdir) + source_package = store_read_package(os.curdir) + elif is_project_dir(os.curdir): source_project = store_read_project(os.curdir) - elif is_package_dir(os.curdir): - source_package = store_read_package(wd) else: raise oscerr.WrongArgs('Too few arguments.') if len(args) > 0: