repa info: Fix build status reporting
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 4 May 2014 16:57:30 +0000 (19:57 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Fri, 9 May 2014 19:34:37 +0000 (22:34 +0300)
When repa shows build failures it should not show packages in 'building'
and 'blocked' statuses.

Change-Id: I1ad2af336c9499105d869104e45d83afcbc8e903
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
repa/info.py

index 267d8e380f0cc545a9c28bb5a458ac3229d035b1..011078da6a58f363d64299c7c025da0eaf6caab4 100755 (executable)
@@ -91,7 +91,7 @@ def info(obs, name, target):
         result = defaultdict(list)
         for (repo, arch), target in build_results.iteritems():
             for pkg, status in target['packages']:
-                if status != 'succeeded':
+                if status not in ('succeeded', 'building', 'blocked'):
                     result[(repo, arch)].append((pkg, status))
         if result:
             print