mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
- do not search for requests, if one got specified via -s parameter
This commit is contained in:
parent
48fc059e0b
commit
21bb30325e
@ -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) ')
|
||||
|
Loading…
Reference in New Issue
Block a user