From 21bb30325edd1de9bb524a262b0a852b7e953f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 26 May 2011 17:13:06 +0200 Subject: [PATCH] - do not search for requests, if one got specified via -s parameter --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 162cbcae..fe86de0d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -954,7 +954,7 @@ class Osc(cmdln.Cmdln): print i, repl = '' - if len(myreqs) > 0: + if len(myreqs) > 0 and not opts.supersede: print '\n\nThere are already following submit request: %s.' % \ ', '.join([str(i) for i in myreqs ]) repl = raw_input('\nSupersede the old requests? (y/n) ') @@ -1071,7 +1071,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. myreqs = [ i for i in reqs if i.state.who == user ] repl = '' - if len(myreqs) > 0: + if len(myreqs) > 0 and not opts.supersede: print 'There are already following submit request: %s.' % \ ', '.join([i.reqid for i in myreqs ]) repl = raw_input('Supersede the old requests? (y/n/c) ')