]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
install_prereq: Update repositories before install on Debian systems 30/1530/2
authorRodrigo Ramírez Norambuena <a@rodrigoramirez.com>
Mon, 19 Oct 2015 12:11:55 +0000 (09:11 -0300)
committerRodrigo Ramírez Norambuena <a@rodrigoramirez.com>
Mon, 26 Oct 2015 08:09:40 +0000 (05:09 -0300)
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

contrib/scripts/install_prereq

index 17cbf030985a2c5e6373e779d05eb23c1c3d0e17..06eb05e71445877eae1c5e03617864368d106e4b 100755 (executable)
@@ -101,6 +101,7 @@ handle_debian() {
                apt-get install aptitude
        fi
        extra_packs=`check_installed_debs $PACKAGES_DEBIAN`
+       $testcmd aptitude update
        $testcmd aptitude install -y $extra_packs
 }