From a9a5632549679febd5d2db20616063c470267c5b Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 28 Nov 2012 22:01:09 +0000 Subject: Don't print message if there are not packages to install --- (limited to 'devbot/system.py') diff --git a/devbot/system.py b/devbot/system.py index 0b9afd1..999a59d 100644 --- a/devbot/system.py +++ b/devbot/system.py @@ -106,8 +106,9 @@ def run_checks(package_manager, checks, packages): print "Failed checks\n" _print_checks(failed_checks) - print "\nYou might try to install the following packages\n" - print " ".join(to_install) + if to_install: + print "\nYou might try to install the following packages\n" + print " ".join(to_install) return False -- cgit v0.9.1