Code

collectd.config: Use "lt-nl" instead of "lt" when comparing versions.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 07:20:25 +0000 (09:20 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 07:20:25 +0000 (09:20 +0200)
"lt-nl" treats an empty version as larger than any other version which is the
desired behavior when checking for an upgrade from v3 to v4.

debian/collectd.config

index 09a47036104d4d8021244b6fb0fa773a2994f04b..0a57dc8e28f8c0cb5b1a0326d6b6b4633f37f38f 100755 (executable)
@@ -16,7 +16,7 @@ case "$1" in
     configure)
         db_set collectd/auto-migrate-3-4 false
 
-        if dpkg --compare-versions "$2" lt "4.0.0~"; then
+        if dpkg --compare-versions "$2" lt-nl "4.0.0~"; then
             db_input high collectd/auto-migrate-3-4 || true
             db_go || true
         fi
@@ -35,4 +35,3 @@ db_stop
 
 exit 0
 
-