[lemonldap-ng] 02/05: Guard `dpkg --compare-versions' call in .config script

gregor herrmann gregoa at debian.org
Wed Oct 15 19:17:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository lemonldap-ng.

commit 7597110cb3944125d7e7b9318d566541e453106c
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Oct 15 20:42:01 2014 +0200

    Guard `dpkg --compare-versions' call in .config script
    
    with a check if the currently installed package version exists.
    
    Thanks: Ryan Tandy for the bug report.
    Closes: #755945
---
 debian/liblemonldap-ng-common-perl.config | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/liblemonldap-ng-common-perl.config b/debian/liblemonldap-ng-common-perl.config
index 9700ae1..50b9dc6 100644
--- a/debian/liblemonldap-ng-common-perl.config
+++ b/debian/liblemonldap-ng-common-perl.config
@@ -17,8 +17,10 @@ db_input medium liblemonldap-ng-common-perl/managerPassword || true
 
 db_input medium liblemonldap-ng-common-perl/portal || true
 
-if dpkg --compare-versions "$2" lt 1.0; then
-	db_input high liblemonldap-ng-common-perl/migrate || true
+if [ "$2" != "" ]; then
+	if dpkg --compare-versions "$2" lt 1.0; then
+		db_input high liblemonldap-ng-common-perl/migrate || true
+	fi
 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