[SCM] Installer for game data files branch, rott, updated. dcfa52fa9a59258e0b3152c8850168dd8fdcde42

Jon Dowland jmtd at debian.org
Thu Mar 25 14:35:21 UTC 2010


The following commit has been merged in the rott branch:
commit 027526a850444838187ab816666b65ac430e62c4
Author: Jon Dowland <jmtd at debian.org>
Date:   Thu Mar 25 14:29:24 2010 +0000

    more file perm checking for zipfile

diff --git a/supported/rott b/supported/rott
index 5d87dd0..7b0ac0c 100644
--- a/supported/rott
+++ b/supported/rott
@@ -68,7 +68,9 @@ DEB="$DATADIR/$DEBBASE"
 go() {
 	verify_args "$@"
 	ZIPFILE=`unravel "$rottzip"`
-    [ -f "$ZIPFILE" ] || die "ERROR: '$ZIPFILE' does not exist."
+    [ -e "$ZIPFILE" ] || die "ERROR: '$ZIPFILE' does not exist."
+    [ -f "$ZIPFILE" ] || die "ERROR: '$ZIPFILE' is not a file."
+    [ -r "$ZIPFILE" ] || die "ERROR: '$ZIPFILE' cannot be read."
 	checksum "$ZIPFILE"
 	if [ "$CHECKSUM" != "$ZIPSUM" ]; then
 		echo "warning: checksum is not what we expected" >&2

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list