]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merge "install_prereq: Check if is installed aptitude otherwise to install." into 13
authorzuul <zuul@gerrit.asterisk.org>
Thu, 17 Mar 2016 22:42:41 +0000 (17:42 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 17 Mar 2016 22:42:42 +0000 (17:42 -0500)
1  2 
contrib/scripts/install_prereq

index 0e6fbcf81aaac9fbd001088e9842e128731b29ef,f8d5c534d87f250004493768798a645982d02ec7..afad1f71967f30eb45454222813779fb2ae6cc7a
@@@ -96,8 -97,10 +97,11 @@@ check_installed_pkgs() 
  }
  
  handle_debian() {
+       if ! [ -x "$(command -v aptitude)" ]; then
+               apt-get install aptitude
+       fi
        extra_packs=`check_installed_debs $PACKAGES_DEBIAN`
 +      $testcmd aptitude update
        $testcmd aptitude install -y $extra_packs
  }