[lemonldap-ng] 05/08: Use dpkg only to compare versions
Xavier Guimard
xguimard-guest at moszumanska.debian.org
Thu Feb 6 12:23:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
xguimard-guest pushed a commit to branch master
in repository lemonldap-ng.
commit 82bdddca2eeef4f8a6723a2871dca3cd3e2b83e6
Author: Xavier Guimard <x.guimard at free.fr>
Date: Thu Feb 6 13:15:00 2014 +0100
Use dpkg only to compare versions
---
debian/liblemonldap-ng-common-perl.config | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/debian/liblemonldap-ng-common-perl.config b/debian/liblemonldap-ng-common-perl.config
index 50b9dc6..3f5e64d 100644
--- a/debian/liblemonldap-ng-common-perl.config
+++ b/debian/liblemonldap-ng-common-perl.config
@@ -17,10 +17,8 @@ db_input medium liblemonldap-ng-common-perl/managerPassword || true
db_input medium liblemonldap-ng-common-perl/portal || true
-if [ "$2" != "" ]; then
- if dpkg --compare-versions "$2" lt 1.0; then
- db_input high liblemonldap-ng-common-perl/migrate || true
- fi
+if dpkg --compare-versions $2 lt 1.0; then
+ db_input high liblemonldap-ng-common-perl/migrate || true
fi
db_go || true
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/lemonldap-ng.git
More information about the Pkg-perl-cvs-commits
mailing list