diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-05-28 08:42:04 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-05-28 08:42:28 +0200 |
commit | 2f0e5828e7c24b0776313f4bf4628126ccb307c2 (patch) | |
tree | 11a5a89cf23775a8274a04214dc63e879d1ddb6c /whatmaps/command.py | |
parent | 6f705cac637853389703943239d9073994f79b40 (diff) |
Silence output if package list is empty
Diffstat (limited to 'whatmaps/command.py')
-rwxr-xr-x | whatmaps/command.py | 3 |
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)) |