[game-data-packager] 01/03: omit ?variation from look_for by default

Simon McVittie smcv at debian.org
Sun Oct 4 20:24:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit a43f603e170dac012107f2bb6a5f85950ca60481
Author: Simon McVittie <smcv at debian.org>
Date:   Sun Oct 4 21:05:46 2015 +0100

    omit ?variation from look_for by default
---
 game_data_packager/__init__.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index e5cc0de..eb24a8a 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -54,7 +54,8 @@ class WantedFile(HashedFile):
         self.distinctive_name = True
         self.distinctive_size = False
         self.download = None
-        self.install_as = name.split('?')[0]
+        self.filename = name.split('?')[0]
+        self.install_as = self.filename
         self.install_to = None
         self.license = False
         self._look_for = []
@@ -68,7 +69,7 @@ class WantedFile(HashedFile):
         if self.alternatives:
             return set([])
         if not self._look_for:
-            self._look_for = set([self.name.lower(), self.install_as.lower()])
+            self._look_for = set([self.filename.lower(), self.install_as.lower()])
         return self._look_for
     @look_for.setter
     def look_for(self, value):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list