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

rubund-guest pushed a commit to branch master
in repository openstreetmap-carto.

commit a6e9a9ac2e779baa4f12d9d6b683346549fc1cef
Author: Ruben Undheim <ruben.undh...@gmail.com>
Date:   Wed Oct 14 09:04:22 2015 +0200

    Clean up install directory if previous upgrade has left some strange files 
there
---
 debian/openstreetmap-carto.preinst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/openstreetmap-carto.preinst 
b/debian/openstreetmap-carto.preinst
index 93e2dc3..3747931 100644
--- a/debian/openstreetmap-carto.preinst
+++ b/debian/openstreetmap-carto.preinst
@@ -19,6 +19,17 @@ case "$1" in
         if [ -d /usr/share/openstreetmap-carto/data ] && [ ! -L 
/usr/share/openstreetmap-carto/data ] ; then
             mv /usr/share/openstreetmap-carto/data 
/usr/share/openstreetmap-carto/data.old
         fi
+
+        # Clean up if previous upgrade has left strange files:
+        if [ -L /usr/share/openstreetmap-carto/data.old/data ] ; then
+            rm -f /usr/share/openstreetmap-carto/data.old/data
+        fi
+        if [ -L /usr/share/openstreetmap-carto/data.old ] ; then
+            rm -f /usr/share/openstreetmap-carto/data.old
+        fi
+        if [ -L /usr/share/openstreetmap-carto/symbols/symbols ] ; then
+            rm -f /usr/share/openstreetmap-carto/symbols/symbols
+        fi
     ;;
 
     abort-upgrade)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/openstreetmap-carto.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to