[Asterisk-code-review] install_prereq: Install aptitude non-interactively (asterisk[16])

Friendly Automation asteriskteam at digium.com
Thu Feb 6 07:22:43 CST 2020


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13728 )

Change subject: install_prereq: Install aptitude non-interactively
......................................................................

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)
---
M contrib/scripts/install_prereq
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Friendly Automation: Approved for Submit



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

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13728
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I271ee00d230513a6f044810351a32d83b2181133
Gerrit-Change-Number: 13728
Gerrit-PatchSet: 1
Gerrit-Owner: Sylvain Afchain <safchain at wazo.io>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200206/98c01c34/attachment-0001.html>


More information about the asterisk-code-review mailing list