summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-05-28 08:42:04 +0200
committerGuido Günther <agx@sigxcpu.org>2015-05-28 08:42:28 +0200
commit2f0e5828e7c24b0776313f4bf4628126ccb307c2 (patch)
tree11a5a89cf23775a8274a04214dc63e879d1ddb6c
parent6f705cac637853389703943239d9073994f79b40 (diff)
Silence output if package list is empty
-rwxr-xr-xwhatmaps/command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/whatmaps/command.py b/whatmaps/command.py
index d0f5c3e..c39b06d 100755
--- a/whatmaps/command.py
+++ b/whatmaps/command.py
@@ -81,7 +81,8 @@ def find_pkgs(procs, distro):
pkg.procs = [ proc ]
pkgs[pkg.name] = pkg
- logging.info("Packages that ship the affected binaries:")
+ if pkgs:
+ logging.info("Packages that ship the affected binaries:")
for pkg in pkgs.values():
logging.info(" Pkg: %s, binaries: %s" % (pkg.name, pkg.procs))