From d377040754883cac843416b724dd92ea8998b090 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 23 Apr 2009 14:17:00 +0200 Subject: [PATCH] Fix postupgrade reconfiguration bug. --- src/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 1.7.10.4