diff --git a/debian/changelog b/debian/changelog index 0a3b994..c14dd71 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,10 +2,12 @@ * Set PATH in script to prevent problems from either missing or maliciously added directories there. + * Fixed code in postinst to compare versions in TheRightWay(tm), not + TheHackyAndNotWorkingWay (closes: #497657) * Added Spanish translations of debconf messages from Maximiliano Marin Bustos (closes: #502938) - -- Paweł Więcek Tue, 16 Dec 2008 22:06:46 +0100 + -- Paweł Więcek Tue, 16 Dec 2008 22:14:18 +0100 slay (2.6.3) unstable; urgency=low diff --git a/debian/postinst b/debian/postinst index 1d44fb7..fe2184d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -6,7 +6,7 @@ # Build config file based on answers... IF NECESSARY ONLY if test -n "$2" then - if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 -o ! -e /etc/slay_mode + if dpkg --compare-versions $2 lt 1.2.7 || test ! -e /etc/slay_mode then db_get slay/punish