[Pkg-sympa-commits] [sympa] 04/07: Fix minor issue which checking data_structure.version
Emmanuel Bouthenot
kolter at alioth.debian.org
Tue Sep 24 21:48:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
kolter pushed a commit to branch master
in repository sympa.
commit 1e54c381fb84832e46ae6c812fd0db3b9442f9f8
Author: Emmanuel Bouthenot <kolter at openics.org>
Date: Tue Sep 24 21:44:33 2013 +0000
Fix minor issue which checking data_structure.version
---
debian/sympa.preinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/sympa.preinst b/debian/sympa.preinst
index 16b19be..6078a51 100644
--- a/debian/sympa.preinst
+++ b/debian/sympa.preinst
@@ -7,7 +7,7 @@
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 [ -f /etc/sympa/data_structure.version ] && [ -z "$(egrep -v '^(#|$)' /etc/sympa/data_structure.version)" ]; then
if [ "$1" = "upgrade" ]; then
echo "$2" | sed -r 's/(~|\+|-).*$//' > /etc/sympa/data_structure.version
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git
More information about the Pkg-sympa-commits
mailing list