Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/distro.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-14 20:29:09 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-14 20:29:09 (GMT)
commit2a362c3b47568a0d95469fd77694d04d18ca7a94 (patch)
tree5beac6c741ac19dbc126c698540aaa958fbb6538 /devbot/distro.py
parentd7d0ca476b526a0d12ebdb0b67ae69a42fc17241 (diff)
Handle missing packages
Diffstat (limited to 'devbot/distro.py')
-rw-r--r--devbot/distro.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/devbot/distro.py b/devbot/distro.py
index a08218f..69937cc 100644
--- a/devbot/distro.py
+++ b/devbot/distro.py
@@ -36,9 +36,13 @@ class FedoraPackageManager:
def _find_deps(self, package, result):
query_format = "--queryformat=[%{REQUIRENAME} ]"
- capabilities = subprocess.check_output(["rpm", "-q",
- query_format,
- package]).strip()
+
+ try:
+ capabilities = subprocess.check_output(["rpm", "-q",
+ query_format,
+ package]).strip()
+ except subprocess.CalledProcessError:
+ print "Package %s not installed" % package
for capability in capabilities.strip().split(" "):
if capability.startswith("rpmlib"):