[SCM] Installer for game data files branch, yaml, updated. 992be3f6d2f345fa3fa69a9ca0861a9007ae36dd

Jon Dowland jmtd at debian.org
Wed Sep 23 14:08:28 UTC 2009


The following commit has been merged in the yaml branch:
commit 992be3f6d2f345fa3fa69a9ca0861a9007ae36dd
Author: Jon Dowland <jmtd at debian.org>
Date:   Wed Sep 23 15:08:22 2009 +0100

    only look for supported/*yaml

diff --git a/gdp.py b/gdp.py
index c4e660a..9a75399 100644
--- a/gdp.py
+++ b/gdp.py
@@ -6,8 +6,9 @@ class Controller:
 	def add_view(self,v):
 		self.view = v
 	def find_supported_games(self):
-		for game in os.listdir("supported"):
-			self.view.supported_game_added(game)
+		for game in [ x for x in os.listdir("supported") \
+			if len(x) >= 5 and x[-5:] == ".yaml"]:
+				self.view.supported_game_added(game)
 	def go(self):
 			self.find_supported_games()
 			self.view.go()

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list