[SCM] Packaging for Tile World branch, master, updated. debian/1.3.0-4-1-g48c6e4a

Gerfried Fuchs rhonda at debian.at
Fri Sep 12 13:17:29 UTC 2008


The following commit has been merged in the master branch:
commit 48c6e4a14bd8ffba17c0482f37c7f4716f95e001
Author: Gerfried Fuchs <rhonda at debian.at>
Date:   Fri Sep 12 15:17:00 2008 +0200

    Switch doc dir from tworld to symlink as dpkg isn't able to do so.

diff --git a/debian/changelog b/debian/changelog
index 66c4612..edf320e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tworld (1.3.0-5) unstable; urgency=low
+
+  * Switch doc dir from tworld to symlink as dpkg isn't able to do so.
+
+ -- Gerfried Fuchs <rhonda at debian.at>  Fri, 12 Sep 2008 15:13:35 +0200
+
 tworld (1.3.0-4) unstable; urgency=low
 
   * Removed debian/docs cruft.
diff --git a/debian/postinst b/debian/postinst
index 2a45f2c..39fd6e1 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -7,6 +7,14 @@ if [ "$1" != configure ]; then
 	exit 0
 fi
 
+if dpkg --compare-versions "$2" le-nl "1.3.0-5"; then
+	if [ -d /usr/share/doc/tworld ]; then
+		if rmdir /usr/share/doc/tworld; then
+			ln -s tworld-data /usr/share/doc/tworld
+		fi
+	fi
+fi
+
 if [ -x /usr/bin/update-menus ]; then
 	update-menus
 fi

-- 
Packaging for Tile World



More information about the Pkg-games-commits mailing list