[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, master, updated. debian/6.1.11_dfsg-3-6-g7732b81

Emmanuel Bouthenot kolter at openics.org
Sat Jun 16 19:18:15 UTC 2012


The following commit has been merged in the master branch:
commit b28dcad8f029161627956c79ee2544b0c130dbbe
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Tue Jun 12 19:39:55 2012 +0000

    Try to fix /etc/sympa/data_structure.version in preinst script when it is empty

diff --git a/debian/sympa.preinst b/debian/sympa.preinst
index f643c6b..e2bf5de 100644
--- a/debian/sympa.preinst
+++ b/debian/sympa.preinst
@@ -6,6 +6,13 @@
 
 set -e
 
+# if /etc/sympa/data_structure.version is empty, we tried to add the right version
+if [ -z "$(egrep -v '^(#|$)' /etc/sympa/data_structure.version)" ]; then
+    if [ "$1" = "upgrade" ]; then
+        echo "$2" | sed -r 's/(~|\+|-).*$//' > /etc/sympa/data_structure.version
+    fi
+fi
+
 # /etc/sympa/data_structure.version should not be handled as a conffile as it
 # is modified by sympa upgrade tool and it breaks the sympa upgrade process
 # itsself (#655967)
@@ -21,6 +28,8 @@ if which dpkg-maintscript-helper >/dev/null && dpkg-maintscript-helper supports
 		"6.1.11~dfsg-1~" -- "$@"
 fi
 
+
+
 #DEBHELPER#
 
 exit 0

-- 
sympa Debian packaging



More information about the Pkg-sympa-commits mailing list