[Asterisk-code-review] make install_prereq not using interactive mode for aptitude (asterisk[master])

Sylvain Afchain asteriskteam at digium.com
Wed Feb 5 02:31:06 CST 2020


Sylvain Afchain has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13725 )


Change subject: make install_prereq not using interactive mode for aptitude
......................................................................

make install_prereq not using interactive mode for aptitude

Currenlty aptitude is install using the insterative mode.
This patch changes this to use the non-interactive mode as
it can block automatic dependencies installation, ex:
CI, Docker build.

Change-Id: I271ee00d230513a6f044810351a32d83b2181133
---
M contrib/scripts/install_prereq
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/13725/1

diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index c321703..9215132 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -261,7 +261,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/+/13725
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I271ee00d230513a6f044810351a32d83b2181133
Gerrit-Change-Number: 13725
Gerrit-PatchSet: 1
Gerrit-Owner: Sylvain Afchain <safchain at wazo.io>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200205/888049b3/attachment.html>


More information about the asterisk-code-review mailing list