From eb2647fd4f033edd3fbc04733c3089125f116fdc Mon Sep 17 00:00:00 2001 From: lethliel Date: Wed, 18 Apr 2018 16:04:06 +0200 Subject: [PATCH] fix order of options valdiation. Now -P and -p is honored if given by user. --- osc/commandline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 7461248f..c71129fc 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2198,16 +2198,16 @@ Please submit there instead, or use --nodevelproject to force direct submission. project = None if len(args) > 0: project = args[0] + elif opts.project: + project = opts.project + if opts.package: + package = opts.package elif not opts.mine and not opts.user and not opts.group: try: project = store_read_project(os.curdir) package = store_read_package(os.curdir) except oscerr.NoWorkingCopy: pass - elif opts.project: - project = opts.project - if opts.package: - package = opts.package if len(args) > 1: package = args[1]