[SCM] Installer for game data files branch, quake, updated. 1f90b116ccca532acc17dd77a8261cff54f9e471

Jon Dowland jmtd at debian.org
Thu Apr 7 21:32:27 UTC 2011


The following commit has been merged in the quake branch:
commit 06a10f49c62b0c415425afda8061fb3674613433
Author: Jon Dowland <jmtd at debian.org>
Date:   Thu Apr 7 14:15:05 2011 +0100

    lha: suggest, fail if missing

diff --git a/debian/control b/debian/control
index a8144b1..e323bc2 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Homepage: http://wiki.debian.org/Games/GameDataPackager
 
 Package: game-data-packager
 Depends: fakeroot, unzip | p7zip-full, ${misc:Depends}
+Suggests: lha
 Conflicts: doom-package
 Replaces: doom-package
 Provides: doom-package
diff --git a/supported/quake b/supported/quake
index b658c89..83f637e 100644
--- a/supported/quake
+++ b/supported/quake
@@ -82,12 +82,17 @@ guess_method() {
     fi
 }
 
+require_lha() {
+    which lha >/dev/null|| die "package 'lha' is required for this installation method."
+}
+
 cdrom_method() {
     bit1="$mountpoint/q101_int.1"
     bit2="$mountpoint/q101_int.2"
     bit1sum=752f49131bb3ba832346e873c1bcfdc6
     bit2sum=9ed67b39020575771e29645d977c9216
     
+    require_lha
     verify_file "$bit1"
     verify_file "$bit2"
     verify_md5sum "$bit1" "$bit1sum"
@@ -113,6 +118,7 @@ dir_method() {
 }
 
 swzip_method() {
+    require_lha
     zipfile=$(unravel "$mountpoint")
     (
         cd "$WORKDIR"

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list