]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
install_prereq: Update repositories before install on Debian systems 32/2432/1
authorRodrigo Ramírez Norambuena <a@rodrigoramirez.com>
Mon, 19 Oct 2015 12:11:55 +0000 (09:11 -0300)
committerKevin Harwell <kharwell@digium.com>
Thu, 17 Mar 2016 19:19:12 +0000 (14:19 -0500)
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 before
install.

ASTERISK-25495 #close

Reporte by: Rodrigo Ramírez Norambuena

Change-Id: I645959e553aac542805ced394cac2dca964051fa
(cherry picked from commit 88f3dbaec9509bfba8bc1de7799aa0dc65304bb5)

contrib/scripts/install_prereq

index a47f38b103c7b15313cbf7cbee876f63827999d9..0e6fbcf81aaac9fbd001088e9842e128731b29ef 100755 (executable)
@@ -97,6 +97,7 @@ check_installed_pkgs() {
 
 handle_debian() {
        extra_packs=`check_installed_debs $PACKAGES_DEBIAN`
+       $testcmd aptitude update
        $testcmd aptitude install -y $extra_packs
 }