1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01: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, print i,
repl = '' repl = ''
if len(myreqs) > 0: if len(myreqs) > 0 and not opts.supersede:
print '\n\nThere are already following submit request: %s.' % \ print '\n\nThere are already following submit request: %s.' % \
', '.join([str(i) for i in myreqs ]) ', '.join([str(i) for i in myreqs ])
repl = raw_input('\nSupersede the old requests? (y/n) ') 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 ] myreqs = [ i for i in reqs if i.state.who == user ]
repl = '' repl = ''
if len(myreqs) > 0: if len(myreqs) > 0 and not opts.supersede:
print 'There are already following submit request: %s.' % \ print 'There are already following submit request: %s.' % \
', '.join([i.reqid for i in myreqs ]) ', '.join([i.reqid for i in myreqs ])
repl = raw_input('Supersede the old requests? (y/n/c) ') repl = raw_input('Supersede the old requests? (y/n/c) ')