diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-15 10:00:02 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-15 10:00:02 (GMT) |
commit | 7a566ea56a68cacd9d69343e406a6b3021043264 (patch) | |
tree | 7e008b2058556bcf3eee9a54ccb71b9fd9639095 /devbot | |
parent | 7d825da2281af4750de43bfdbd4cfa231402e804 (diff) |
Strip capabilities to avoid empty queries
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/distro.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devbot/distro.py b/devbot/distro.py index 3c2872b..2ba1c6b 100644 --- a/devbot/distro.py +++ b/devbot/distro.py @@ -61,9 +61,12 @@ class FedoraPackageManager: print "Package %s not installed" % package return - for capability in capabilities.strip().split(" "): + for unstripped_capability in capabilities.strip().split(" "): + capability = unstripped_capability.strip() + if capability.startswith("rpmlib"): continue + query_format = "--queryformat=[%{NAME} ]" deps_packages = subprocess.check_output(["rpm", "-q", query_format, |