The following commit has been merged in the master branch:
commit 104ca324338cc4a4d491bd5b4d8ab95ce05bd4c1
Author: Gerfried Fuchs <[email protected]>
Date:   Tue May 24 12:08:45 2011 +0200

    fix postinst script for doc dir handling

diff --git a/debian/changelog b/debian/changelog
index e69e673..5d32285 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ tworld (1.3.0-6) unstable; urgency=low
   [ Gerfried Fuchs ]
   * Bump Standards-Version to 3.9.2.
   * Switch packaging licensing to WTFPLv2.
+  * Supress error message in postinst if rmdir fails. Also, use lt-nl rather
+    than le-nl.
 
  -- 
 
diff --git a/debian/postinst b/debian/postinst
index 324711e..ba3b138 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -9,9 +9,9 @@ if [ "$1" != configure ]; then
        exit 0
 fi
 
-if dpkg --compare-versions "$2" le-nl "1.3.0-5"; then
+if dpkg --compare-versions "$2" lt-nl "1.3.0-5"; then
        if [ -d /usr/share/doc/tworld ]; then
-               if rmdir /usr/share/doc/tworld; then
+               if rmdir /usr/share/doc/tworld 2>/dev/null; then
                        ln -s tworld-data /usr/share/doc/tworld
                fi
        fi

-- 
Packaging for Tile World

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to