r767 - packages/ketm/debian

Sam Hocevar sho at costa.debian.org
Sat May 27 19:51:14 UTC 2006


Author: sho
Date: 2006-05-27 19:51:13 +0000 (Sat, 27 May 2006)
New Revision: 767

Modified:
   packages/ketm/debian/changelog
   packages/ketm/debian/ketm-data.preinst
   packages/ketm/debian/ketm.postinst
Log:
ketm (0.0.6-19) unstable; urgency=low

  * debian/ketm.postinst:
    + Fixed an installation warning in the ketm/ketm-data symlink transition.


Modified: packages/ketm/debian/changelog
===================================================================
--- packages/ketm/debian/changelog	2006-05-27 01:36:12 UTC (rev 766)
+++ packages/ketm/debian/changelog	2006-05-27 19:51:13 UTC (rev 767)
@@ -1,3 +1,10 @@
+ketm (0.0.6-19) unstable; urgency=low
+
+  * debian/ketm.postinst:
+    + Fixed an installation warning in the ketm/ketm-data symlink transition.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Sat, 27 May 2006 09:20:55 +0200
+
 ketm (0.0.6-18) unstable; urgency=low
 
   * Moved packaging to the Debian Games Team.
@@ -37,7 +44,7 @@
   * debian/patches/030_manpage.diff:
     + New patch from old diff.gz -- add a manpage.
 
- -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Mon, 15 May 2006 19:41:05 +0200
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Sat, 27 May 2006 09:20:45 +0200
 
 ketm (0.0.6-17) unstable; urgency=low
 

Modified: packages/ketm/debian/ketm-data.preinst
===================================================================
--- packages/ketm/debian/ketm-data.preinst	2006-05-27 01:36:12 UTC (rev 766)
+++ packages/ketm/debian/ketm-data.preinst	2006-05-27 19:51:13 UTC (rev 767)
@@ -1,7 +1,11 @@
 #!/bin/sh
 
-if [ -L /usr/share/doc/ketm-data ]; then
-  rm -f /usr/share/doc/ketm-data
+set -e
+
+DOCDIR="/usr/share/doc/ketm-data"
+
+if [ -L "$DOCDIR" ]; then
+  rm -f "$DOCDIR"
 fi
 
 #DEBHELPER#

Modified: packages/ketm/debian/ketm.postinst
===================================================================
--- packages/ketm/debian/ketm.postinst	2006-05-27 01:36:12 UTC (rev 766)
+++ packages/ketm/debian/ketm.postinst	2006-05-27 19:51:13 UTC (rev 767)
@@ -1,14 +1,18 @@
 #! /bin/sh
 
+set -e
+
+DOCDIR="/usr/share/doc/ketm"
+
 chown games:games /var/games/ketm.scores
 chmod 664 /var/games/ketm.scores
 chown root:games /usr/games/ketm
 chmod 2755 /usr/games/ketm
 
-if [ -d /usr/share/doc/ketm ]; then
-  rmdir --ignore-fail-on-non-empty /usr/share/doc/ketm
-  if [ ! -d /usr/share/doc/ketm ]; then
-    ln -s ketm-data /usr/share/doc/ketm
+if [ -d "$DOCDIR" -a ! -L "$DOCDIR" ]; then
+  rmdir --ignore-fail-on-non-empty "$DOCDIR"
+  if [ ! -d "$DOCDIR" ]; then
+    ln -s ketm-data "$DOCDIR"
   fi
 fi
 




More information about the Pkg-games-commits mailing list