[game-data-packager] 01/01: locate_steam_icon: refactoring
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sat Oct 3 22:04:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit ee0b6ed5a53961f7ca7016f2ee0cb50e468143c0
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Oct 4 00:03:26 2015 +0200
locate_steam_icon: refactoring
---
game_data_packager/build.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 1d3904e..4de66fb 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -2224,13 +2224,14 @@ class PackagingTask(object):
return debs
def locate_steam_icon(self, package):
- id = package.steam.get('id') or self.steam.get('id')
+ id = package.steam.get('id') or self.game.steam.get('id')
if not id:
return
for res in (128, 96, 64, 32):
icon = '~/.local/share/icons/hicolor/%dx%d/apps/steam_icon_%d.png'
icon = os.path.expanduser(icon % (res, res, id))
if os.path.isfile(icon):
+ logger.info('found icon provided by native Steam client at %s.' % icon)
return icon
return
--
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