install_prereq: Update repositories before install on Debian systems

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 88f3dbaec9)
This commit is contained in:
Rodrigo Ramírez Norambuena
2015-10-19 09:11:55 -03:00
committed by Kevin Harwell
parent aeef52db9f
commit 88240f98d9

View File

@@ -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
}