From 9c40b4489be8d84a0fd9867ca2a146cfe9da42cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dennis=20Nienh=C3=BCser?= Date: Sun, 4 Dec 2011 12:03:05 +0100 Subject: [PATCH] Install osm base tile in the cache dir. --- packaging/debian/marble.postinst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packaging/debian/marble.postinst b/packaging/debian/marble.postinst index 666bed5..d8149b0 100755 --- a/packaging/debian/marble.postinst +++ b/packaging/debian/marble.postinst @@ -30,8 +30,11 @@ OSM_DIR_10="/home/user/MyDocs/.local/share/marble/maps/earth/openstreetmap" # The OSM tile download location in Marble 1.1 and later OSM_DIR_11="/home/user/MyDocs/.maps/OpenStreetMap I" +# The OSM base path +OSM_DIR_BASE="/opt/marble/share/marble/data/maps/earth/openstreetmap" + # The OSM theme .dgml file -OSM_DGML="/opt/marble/share/marble/data/maps/earth/openstreetmap/openstreetmap.dgml" +OSM_DGML="${OSM_DIR_BASE}/openstreetmap.dgml" # A file used as a flag to indicate a previous migration MIGRATED="${OSM_DIR_10}/.migrated" @@ -93,4 +96,8 @@ test -d "${OSM_DIR_10}/" && touch "${MIGRATED}" # Finally, change the download location in the .dgml file. Also needed for new installations sed -i "s@ earth/openstreetmap @ ${OSM_DIR_11} @" "${OSM_DGML}" +# Copy the base tile to the right place. +mkdir -p "${OSM_DIR_11}/0/0" +cp "${OSM_DIR_BASE}/0/0/0.png" "${OSM_DIR_11}/0/0/" + exit 0 -- 1.7.9.5