From 2f0e5828e7c24b0776313f4bf4628126ccb307c2 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 28 May 2015 08:42:04 +0200 Subject: Silence output if package list is empty --- whatmaps/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'whatmaps') 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)) -- cgit v1.2.3