From e8859a6a74cc86b6a45cf52d34de844a71afec1b Mon Sep 17 00:00:00 2001 From: Juergen Weigert Date: Tue, 21 Sep 2010 19:59:15 +0200 Subject: [PATCH] oops, that was perl syntax ... --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index ae21d9b1..134123ba 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1712,7 +1712,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. state_list = ['all'] else: 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))) if opts.mine: who = conf.get_apiurl_usr(apiurl)