info: Excluded 'disabled' build statut from the list
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 12 Jun 2014 11:30:30 +0000 (14:30 +0300)
committerEduard Bartosh <eduard.bartosh@intel.com>
Fri, 13 Jun 2014 19:28:01 +0000 (22:28 +0300)
With a lot of packages in 'disabled' state  repa info produced
a very long output, which makes it too hard to understand and
analyze. Excluding it should make an output more useful.

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

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