[game-data-packager] 01/01: steam: make "--new" work for partialy installed game
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Tue Sep 8 20:46:22 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 1d691fc2fb06ddadea0bc48068c865f386d63b48
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Tue Sep 8 22:45:07 2015 +0200
steam: make "--new" work for partialy installed game
e.g.: Quake3 is installed, but not Quake3 Team Arena;
with --new, only Q3TA get packaged
---
game_data_packager/__init__.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 87aa567..cf11e5a 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -3154,8 +3154,14 @@ def run_steam_meta_mode(parsed, games):
game.verbose = getattr(parsed, 'verbose', False)
game.save_downloads = parsed.save_downloads
game.look_for_files()
+
+ todo = list()
+ for packages in found_packages:
+ if packages['game'] == shortname:
+ todo.append(game.packages[packages['package']])
try:
- ready = game.prepare_packages(log_immediately=False)
+ ready = game.prepare_packages(log_immediately=False,
+ packages=todo)
except NoPackagesPossible:
logger.error('No package possible for %s.' % game.shortname)
continue
--
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