[SCM] Installer for game data files branch, gui, updated. 9092133f0b2589fd66ef16e6348f2c3989f9aa4c

Jon Dowland jmtd at debian.org
Fri Sep 25 17:28:47 UTC 2009


The following commit has been merged in the gui branch:
commit 4489d79698b1ab839ce12c765218e6728b986f6f
Author: Jon Dowland <jmtd at debian.org>
Date:   Thu Sep 24 18:29:38 2009 +0100

    convert all supported/ files into YAML

diff --git a/gdp.py b/gdp.py
index 9ba873a..48c0794 100755
--- a/gdp.py
+++ b/gdp.py
@@ -17,11 +17,10 @@ class Controller:
 
 	def get_model(self):
 		self.m = m = Model()
-		for game in [ x for x in os.listdir("supported") \
-			if len(x) >= 5 and x[-5:] == ".yaml"]:
-				y = yaml.load(open("supported/%s"%game,"r").read())
-				m.append(y)
-				self.view.supported_game_added(y)
+		for game in [ x for x in os.listdir("supported")]:
+			y = yaml.load(open("supported/%s"%game,"r").read())
+			m.append(y)
+			self.view.supported_game_added(y)
 		return m
 
 	def set_game(self, game):
diff --git a/supported/doom b/supported/doom
index d15949d..9df34cb 100644
--- a/supported/doom
+++ b/supported/doom
@@ -1,26 +1,9 @@
-
-SHORTNAME=doom
-LONGNAME="Doom (including Ultimate Doom)"
-
-check_for_v19() {
-	case "$CHECKSUM" in
-		"c4fe9fd920207691a9f493668e0a2083")
-			debug "doom.wad is a v1.9 IWAD (ultimate doom)"
-			;;
-		"1cd63c5ddff1bf8ce844237f580e9cf3")
-			debug "doom.wad is a v1.9 IWAD (registered)"
-			;;
-		*)
-			warn "the doom.wad file is not version 1.9"
-			warn "(or has been modified)"
-			warn "you may have some problems with PWADs and demos"
-			;;
-	esac
-
-}
-
-if [ -f ./lib/game-data-packager-shared ]; then
-	. ./lib/doom-common
-else
-	. /usr/lib/game-data-packager/doom-common
-fi
+shortname: doom
+longname: "Doom"
+actions:
+  - 
+    name: doom.wad
+    destination: /usr/share/games/doom/doom.wad
+    md5:
+      - c4fe9fd920207691a9f493668e0a2083
+      - 1cd63c5ddff1bf8ce844237f580e9cf3
diff --git a/supported/doom2 b/supported/doom2
index 904953d..bec93be 100644
--- a/supported/doom2
+++ b/supported/doom2
@@ -1,22 +1,12 @@
-
-SHORTNAME=doom2
-LONGNAME="Doom 2"
-
-check_for_v19() {
-	case "$CHECKSUM" in
-		"25e1459ca71d321525f84628f45ca8cd")
-			debug "doom2.wad is a v1.9 IWAD"
-			;;
-		*)
-			warn "the doom2.wad file is not version 1.9"
-			warn "you may have some problems with PWADs and demos"
-			;;
-	esac
-
-}
-
-if [ -f ./lib/game-data-packager-shared ]; then
-	. ./lib/doom-common
-else
-	. /usr/lib/game-data-packager/doom-common
-fi
+shortname: doom2
+longname: "Doom 2: Hell on Earth"
+actions:
+  - 
+    name: doom2.wad
+    destination: /usr/share/games/doom/doom2.wad
+    md5: [ 25e1459ca71d321525f84628f45ca8cd ]
+    depends: [ zomg ]
+  -
+    name: zomg
+    destination: /tmp/zomg
+    md5: 6f5902ac237024bdd0c176cb93063dc4
diff --git a/supported/doom2.yaml b/supported/doom2.yaml
deleted file mode 100644
index 80c5313..0000000
--- a/supported/doom2.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-shortname: doom2
-longname: "Doom 2: Hell on Earth"
-actions:
-  - 
-    name: doom2
-    destination: /usr/share/games/doom/doom2.wad
-    md5: 25e1459ca71d321525f84628f45ca8cd
-    depends: [ zomg ]
-  -
-    name: zomg
-    destination: /tmp/zomg
-    md5: 6f5902ac237024bdd0c176cb93063dc4
diff --git a/supported/plutonia b/supported/plutonia
index 59c6838..b616b36 100644
--- a/supported/plutonia
+++ b/supported/plutonia
@@ -1,20 +1,8 @@
-SHORTNAME=plutonia
-LONGNAME="Final Doom: The Plutonia Experiment"
+shortname: Plutonia
+longname: "Final Doom: The Plutonia Experiment"
+actions:
+  - 
+    name: plutonia.wad
+    destination: /usr/share/games/doom/plutonia.wad
+    md5: [ 75c8cf89566741fa9d22447604053bd7 ]
 
-check_for_v19() {
-	case "$CHECKSUM" in
-		"75c8cf89566741fa9d22447604053bd7")
-            debug "plutonia.wad has a known checksum"
-			;;
-		*)
-			warn "plutonia.wad has an unknown checksum"
-			;;
-	esac
-
-}
-
-if [ -f ./lib/game-data-packager-shared ]; then
-	. ./lib/doom-common
-else
-	. /usr/lib/game-data-packager/doom-common
-fi
diff --git a/supported/tnt b/supported/tnt
index b4f011e..2f7cb05 100644
--- a/supported/tnt
+++ b/supported/tnt
@@ -1,21 +1,7 @@
-
-SHORTNAME=tnt
-LONGNAME="Final Doom: TNT: Evilution"
-
-check_for_v19() {
-	case "$CHECKSUM" in
-		"4e158d9953c79ccf97bd0663244cc6b6")
-			debug "tnt.wad checksum is correct"
-			;;
-		*)
-			warn "the tnt.wad file has an unknown checksum"
-			;;
-	esac
-
-}
-
-if [ -f ./lib/game-data-packager-shared ]; then
-	. ./lib/doom-common
-else
-	. /usr/lib/game-data-packager/doom-common
-fi
+shortname: tnt
+longname: "Final Doom: TNT: Evilution"
+actions:
+  - 
+    name: tnt.wad
+    destination: /usr/share/games/doom/tnt.wad
+    md5: [ 4e158d9953c79ccf97bd0663244cc6b6 ]

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list