Fix list --important to actually apply a filter.
authorRobert Lehmann <mail@robertlehmann.de>
Sun, 14 Nov 2010 20:45:26 +0000 (21:45 +0100)
committerRobert Lehmann <mail@robertlehmann.de>
Sun, 14 Nov 2010 20:45:26 +0000 (21:45 +0100)
libbe/command/depend.py

index e1446febc22bc24fa8b29a4243ffb6dea26f0532..0fd8f2ea3a1bdf419ee2707ed2755d19e2705605 100644 (file)
@@ -84,11 +84,11 @@ def parse_status(status):
     return status
 
 def parse_severity(severity, important=False):
-    if severity == 'all':
-        severity = libbe.bug.severity_values
-    elif important == True:
+    if important == True:
         serious = libbe.bug.severity_values.index('serious')
-        severity.append(list(libbe.bug.severity_values[serious:]))
+        severity = list(libbe.bug.severity_values[serious:])
+    elif severity == 'all':
+        severity = libbe.bug.severity_values
     else:
         severity = libbe.command.util.select_values(
             severity, libbe.bug.severity_values)