[Asterisk-code-review] install prereq: Update repositories before install packages (asterisk[master])

Rodrigo Ramirez Norambuena asteriskteam at digium.com
Sun Oct 25 21:25:37 CDT 2015


Rodrigo Ramirez Norambuena has uploaded a new change for review.

  https://gerrit.asterisk.org/1530

Change subject: install_prereq: Update repositories before install packages
......................................................................

install_prereq: Update repositories before install packages

When to install packages the indexed local is more old of the
version of software on the repository they have been upgraded by security
update then get the package will give 404 not found.

The patch prevent by update local index to repository for aptitude and yum
before install

ASTERISK-25495 #close

Reporte by: Rodrigo Ramírez Norambuena

Change-Id: I645959e553aac542805ced394cac2dca964051fa
---
M contrib/scripts/install_prereq
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/30/1530/1

diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 17cbf03..efb21e0 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -101,11 +101,13 @@
 		apt-get install aptitude
 	fi
 	extra_packs=`check_installed_debs $PACKAGES_DEBIAN`
+	$testcmd aptitude update
 	$testcmd aptitude install -y $extra_packs
 }
 
 handle_rh() {
 	extra_packs=`check_installed_rpms $PACKAGES_RH`
+	$testcmd yum update
 	$testcmd yum install -y $extra_packs
 }
 

-- 
To view, visit https://gerrit.asterisk.org/1530
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I645959e553aac542805ced394cac2dca964051fa
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Rodrigo Ramirez Norambuena <a at rodrigoramirez.com>



More information about the asterisk-code-review mailing list