1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 10:06:17 +01:00

oops, that was perl syntax ...

This commit is contained in:
Juergen Weigert 2010-09-21 19:59:15 +02:00
parent eb295452ae
commit e8859a6a74

View File

@ -1712,7 +1712,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
state_list = ['all'] state_list = ['all']
else: else:
for s in state_list: for s in state_list:
if not s in [states, 'all']: if not s in states and not s == 'all':
raise oscerr.WrongArgs('Unknown state \'%s\', try one of %s' % (s, ','.join(states))) raise oscerr.WrongArgs('Unknown state \'%s\', try one of %s' % (s, ','.join(states)))
if opts.mine: if opts.mine:
who = conf.get_apiurl_usr(apiurl) who = conf.get_apiurl_usr(apiurl)