[SCM] Debian branch, master, updated. debian/1.2.2-3-12-g9e17c92
Xavier Guimard
x.guimard at free.fr
Sun Mar 10 06:37:21 UTC 2013
The following commit has been merged in the master branch:
commit 65713bd9be3bb9491f37e78eb302d9b6ea3baf28
Author: Xavier Guimard <x.guimard at free.fr>
Date: Sun Mar 10 07:35:41 2013 +0100
Launch migration script only if LLNG was already installed
diff --git a/debian/liblemonldap-ng-conf-perl.postinst b/debian/liblemonldap-ng-conf-perl.postinst
index 5ebec3f..47e450b 100755
--- a/debian/liblemonldap-ng-conf-perl.postinst
+++ b/debian/liblemonldap-ng-conf-perl.postinst
@@ -27,11 +27,13 @@ then
done
# Run migration script to convert menu format if old version is 0.9.*
- if dpkg --compare-versions $2 lt 1.0; then
- if [ -e $CONFDIR/storage.conf -o -e $CONFDIR/apply.conf -o -e $CONFDIR/apps-list.xml ] ; then
- db_get liblemonldap-ng-conf-perl/migrate
- if [ "$RET" ]; then
- $MIGRATION 2>&1 > /dev/null || :
+ if [ "$2" != "" ]; then
+ if dpkg --compare-versions $2 lt 1.0; then
+ if [ -e $CONFDIR/storage.conf -o -e $CONFDIR/apply.conf -o -e $CONFDIR/apps-list.xml ] ; then
+ db_get liblemonldap-ng-conf-perl/migrate
+ if [ "$RET" ]; then
+ $MIGRATION 2>&1 > /dev/null || :
+ fi
fi
fi
fi
--
Debian
More information about the Pkg-perl-cvs-commits
mailing list