]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
install_prereq: Install aptitude non-interactively
authorSylvain Afchain <safchain@gmail.com>
Wed, 5 Feb 2020 08:26:58 +0000 (09:26 +0100)
committerSean Bright <sean.bright@gmail.com>
Wed, 5 Feb 2020 12:20:07 +0000 (06:20 -0600)
Currently aptitude is installed using interactive mode. This patch
changes this to use the non-interactive mode as it can block
automatic dependencies installation, ex: CI, Docker build.

ASTERISK-28726 #close

Change-Id: I271ee00d230513a6f044810351a32d83b2181133

contrib/scripts/install_prereq

index c3217033dbd347bfc274132847592f8086ab0784..9215132044f49782ad6e07f2da9c3669d12fd101 100755 (executable)
@@ -261,7 +261,7 @@ check_installed_zypper() {
 
 handle_debian() {
        if ! [ -x "$(command -v aptitude)" ]; then
-               apt-get install aptitude
+               apt-get install -y aptitude
        fi
        extra_packs=`check_installed_debs $PACKAGES_DEBIAN`
        $testcmd aptitude update