Return a friendly error message if aptitude isn't installed

pull/4420/head
serenecloud 2013-06-30 15:36:13 +12:00
parent d61a65ff08
commit a17ca862fb
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ def main():
global APT_GET_CMD
APT_GET_CMD = module.get_bin_path("apt-get")
if not APTITUDE_CMD:
module.fail_json(msg="Could not find aptitude. Please ensure it is installed.")
p = module.params
install_recommends = p['install_recommends']