diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 23:25:16 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 23:25:16 (GMT) |
commit | e92095e2a4b544ceb57cf5392c95ddc1979a543f (patch) | |
tree | d8333c7da2e4e745371623a571686f07e96f0330 /devbot/system.py | |
parent | 0b61f4f6d3bf0a25c6775619b53fa1b4cafafb94 (diff) |
Install packages only if the list is not emptywq
Diffstat (limited to 'devbot/system.py')
-rw-r--r-- | devbot/system.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devbot/system.py b/devbot/system.py index d348f2a..0bbfe8d 100644 --- a/devbot/system.py +++ b/devbot/system.py @@ -103,7 +103,8 @@ def run_checks(package_manager, checks, packages): _print_checks(_packages_not_found) return False - package_manager.install_packages(to_install) + if to_install: + package_manager.install_packages(to_install) elif failed_checks: print "Failed checks\n" _print_checks(failed_checks) |