From 40a28b68bd2c1df7f51cd59c23a38318b0f2667a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 2 May 2007 09:20:25 +0200 Subject: [PATCH] collectd.config: Use "lt-nl" instead of "lt" when comparing versions. "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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/collectd.config b/debian/collectd.config index 09a4703..0a57dc8 100755 --- a/debian/collectd.config +++ b/debian/collectd.config @@ -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 - -- 2.30.2