[game-data-packager] 03/11: Make WantedFile.look_for default to WantedFile.install_as
Simon McVittie
smcv at debian.org
Mon Jan 12 23:37:03 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 3182043084170a1982832a4d45d59c2d5423620e
Author: Simon McVittie <smcv at debian.org>
Date: Mon Jan 12 21:45:20 2015 +0000
Make WantedFile.look_for default to WantedFile.install_as
---
data/rtcw.yaml | 2 --
lib/game_data_packager/__init__.py | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/data/rtcw.yaml b/data/rtcw.yaml
index a1b4177..82d8fbe 100644
--- a/data/rtcw.yaml
+++ b/data/rtcw.yaml
@@ -48,8 +48,6 @@ packages:
install_files:
main/scripts/translation.cfg_141_unix:
- look_for:
- - main/scripts/translation.cfg
install_as: main/scripts/translation.cfg
size: 159375
sha256: 301670fbd41eb6797b02cc5ba8ae5e221eeaef5de3280e6e2db390c7a29ddc8f
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 68000d2..3002dd7 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -181,7 +181,7 @@ class WantedFile(HashedFile):
if self.alternatives:
return set([])
if not self._look_for:
- self._look_for = set([self.name.lower()])
+ self._look_for = set([self.name.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