In select command, if the fprj and target_project are the same, do not show the move option.

This commit is contained in:
Alberto Planas 2014-09-10 17:32:00 +02:00
parent cff666b287
commit 74714d191c

View File

@ -95,7 +95,7 @@ class SelectCommand(object):
fprj = self.api.packages_staged[staged_requests[request]]['prj'] fprj = self.api.packages_staged[staged_requests[request]]['prj']
msg = 'Request {} is already tracked in "{}".' msg = 'Request {} is already tracked in "{}".'
msg = msg.format(request, fprj) 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 += '\nUse --move modifier to move the request from "{}" to "{}"'
msg = msg.format(fprj, self.target_project) msg = msg.format(fprj, self.target_project)
print(msg) print(msg)