From: Valentin Vidic Date: Thu, 23 Apr 2009 12:17:00 +0000 (+0200) Subject: Fix postupgrade reconfiguration bug. X-Git-Tag: debian/5.0.0~42 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d377040754883cac843416b724dd92ea8998b090;p=carnet-upgrade.git Fix postupgrade reconfiguration bug. --- diff --git a/src/functions.sh b/src/functions.sh index 8e09d21..6d192dd 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -763,7 +763,7 @@ restore_config () { # force reconfiguration at the end if package is not upgraded automatically if [ "$config_changed" -a "$cn_package" ]; then cn_version=$( dpkg -s "$cn_package" | awk '/^Version:/ {print $2}' ) - post_upgrade "pkg $cn_package eq $cn_version && dpkg-reconfigure $cn_package" + post_upgrade "pkg $cn_package gt $cn_version || dpkg-reconfigure $cn_package" fi }