[openstreetmap-carto] 01/01: Move data.old to /usr/share/openstreetmap-carto-common/data if it exists
Ruben Undheim
rubund-guest at moszumanska.debian.org
Sun Oct 11 20:17:12 UTC 2015
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 9145d00d6bcefa883e709de87ff06bc94bf3f295
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Sun Oct 11 22:13:06 2015 +0200
Move data.old to /usr/share/openstreetmap-carto-common/data if it exists
---
debian/openstreetmap-carto-common.postinst | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/openstreetmap-carto-common.postinst b/debian/openstreetmap-carto-common.postinst
index 884ac15..f138a1e 100755
--- a/debian/openstreetmap-carto-common.postinst
+++ b/debian/openstreetmap-carto-common.postinst
@@ -9,6 +9,10 @@ db_get openstreetmap-carto/fetch-data
if [ "$RET" = "true" ]; then
cd /usr/share/openstreetmap-carto-common/ && ./get-shapefiles.sh
db_set openstreetmap-carto/fetch-data false
+elif [ -d /usr/share/openstreetmap-carto/data.old ] &&
+ [ ! -L /usr/share/openstreetmap-carto/data.old ] &&
+ [ ! -e /usr/share/openstreetmap-carto-common/data ] ; then
+ mv /usr/share/openstreetmap-carto/data.old /usr/share/openstreetmap-carto-common/data
fi
#DEBHELPER#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/openstreetmap-carto.git
More information about the Pkg-grass-devel
mailing list