From 40b834ad8c5e341243f7f678efa9522b7218e5e1 Mon Sep 17 00:00:00 2001
From: Sylvain Afchain <safchain@gmail.com>
Date: Wed, 5 Feb 2020 09:26:58 +0100
Subject: [PATCH] install_prereq: Install aptitude non-interactively

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
(cherry picked from commit 0c02d0a4500cbd4f657c26eb609928c110ebccb9)
---
 contrib/scripts/install_prereq | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 5063157c7a..fe9f046339 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -263,7 +263,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
-- 
GitLab