From 74714d191c1bfdcc67b5912e19f5602f184284ef Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Wed, 10 Sep 2014 17:32:00 +0200 Subject: [PATCH] In select command, if the fprj and target_project are the same, do not show the move option. --- osclib/select_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/select_command.py b/osclib/select_command.py index af85dfac..779bc54e 100644 --- a/osclib/select_command.py +++ b/osclib/select_command.py @@ -95,7 +95,7 @@ class SelectCommand(object): fprj = self.api.packages_staged[staged_requests[request]]['prj'] msg = 'Request {} is already tracked in "{}".' msg = msg.format(request, fprj) - if staged_requests[request] != self.target_project: + if fprj != self.target_project: msg += '\nUse --move modifier to move the request from "{}" to "{}"' msg = msg.format(fprj, self.target_project) print(msg)