Attached is a possible fix for this bug which replaces the sed magic by
a call to 'dpkg --compare-versions'. According to the manpage it checks
for empty arguments, so this should be no problem (though I'm not sure
wheter we should use 'lt-nl' instead of 'lt' to compare).
--- lockdev-1.0.3/debian/liblockdev1.postinst.orig      2006-06-07 
21:15:50.000000000 +0200
+++ lockdev-1.0.3/debian/liblockdev1.postinst   2006-06-07 21:26:49.000000000 
+0200
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-if [ "$1" = "configure" -a "`echo $2 | sed -e 's/[.-]//g'`" -lt 1031 ]
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 1.0.3-1
 then
   echo "" >&2
   echo "WARNING" >&2

Attachment: signature.asc
Description: Digital signature



Reply via email to