1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

- do not search for requests, if one got specified via -s parameter

This commit is contained in:
Adrian Schröter 2011-05-26 17:13:06 +02:00
parent 48fc059e0b
commit 21bb30325e

View File

@ -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) ')