From: Sebastian Harl Date: Wed, 2 May 2007 07:20:25 +0000 (+0200) Subject: collectd.config: Use "lt-nl" instead of "lt" when comparing versions. X-Git-Tag: collectd-4.0.2-1~45^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40a28b68bd2c1df7f51cd59c23a38318b0f2667a;p=pkg-collectd.git 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. --- 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 -