[Pkg-nethack-devel] nethack/debian nethack-common.postinst,1.4,1.5
Ben Gertzfield
che@quantz.debian.org
Mon, 13 Oct 2003 18:54:14 +0000
Update of /cvsroot/pkg-nethack/nethack/debian
In directory quantz:/tmp/cvs-serv20089
Modified Files:
nethack-common.postinst
Log Message:
Add quotes around $2 in postinst (may not be defined).
Clarify output when backing up save files.
Index: nethack-common.postinst
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/nethack-common.postinst,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- nethack-common.postinst 13 Oct 2003 17:43:48 -0000 1.4
+++ nethack-common.postinst 13 Oct 2003 18:54:11 -0000 1.5
@@ -29,7 +29,7 @@
# Also check to see whether old save directory exists and contains
# files, that means we're upgrading from a version where nethack-common
# is new.
- if dpkg --compare-versions $2 lt 3.4.0 || \
+ if dpkg --compare-versions "$2" lt 3.4.0 || \
[ -d $OLDLOGDIR -a -n "`ls $OLDLOGDIR/save 2>/dev/null || true`" ]; then
# But, it's a non-issue if there were no save files to begin with.
if [ -d $LOGDIR -a -n "`ls $LOGDIR/save 2>/dev/null || true`" ]; then
@@ -51,7 +51,7 @@
;;
backup)
if [ -n "$PROCESSDIRS" ]; then
- echo "Savegames incompatibility from older versions:"
+ echo "Backing up incompatible save games from previous versions: "
for GAMEDIR in $PROCESSDIRS; do
if [ ! -d $GAMEDIR ]; then continue; fi