return 1
esac
- pkgadd_if_installed $packages
+ pkgupgrade $packages
}
# install packages introduced in this release
# make a silent installation of carnet and srce keyrings
install_keyrings () {
pkgadd carnet-keyring srce-keyring debian-archive-keyring
- pkgadd_if_installed dpkg apt debconf python-apt dpkg-dev
+ pkgupgrade dpkg apt debconf python-apt dpkg-dev
dpkg-reconfigure carnet-keyring srce-keyring debian-archive-keyring
apt_update
}
# only upgrade packages if they are already installed
-pkgadd_if_installed () {
+pkgupgrade () {
local packages
packages=$( grep_installed $* )
# make a silent upgrade to new libc6
upgrade_libc () {
- DEBIAN_FRONTEND=noninteractive pkgadd_if_installed libc6 libc6-dev tzdata
+ DEBIAN_FRONTEND=noninteractive pkgupgrade libc6 libc6-dev tzdata
}
# upgrade apache2/php5 to lenny
upgrade_apache2 () {
pkgrm apache-common # prevents installation of apache2-suexec
- pkgadd_if_installed libapache2-mod-php5 php5-cli php5-cn apache2-cn \
+ pkgupgrade libapache2-mod-php5 php5-cli php5-cn apache2-cn \
php5-odbc php5-suhosin php-suhosin-cn
}