[game-data-packager] 03/03: steam: don't try to package games that aren't in our Steam installation

Simon McVittie smcv at debian.org
Thu Oct 1 23:22:05 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 239effaf9a9f8546706c60c9279af6f421462cae
Author: Simon McVittie <smcv at debian.org>
Date:   Fri Oct 2 00:17:36 2015 +0100

    steam: don't try to package games that aren't in our Steam installation
---
 game_data_packager/steam.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/game_data_packager/steam.py b/game_data_packager/steam.py
index 1928e16..034dc83 100644
--- a/game_data_packager/steam.py
+++ b/game_data_packager/steam.py
@@ -171,8 +171,12 @@ def run_steam_meta_mode(args, games):
 
         todo = list()
         for packages in found_packages:
-            if packages['game'] == shortname:
+            if packages['game'] == shortname and packages['paths']:
                 todo.append(task.game.packages[packages['package']])
+
+        if not todo:
+            continue
+
         try:
             ready = task.prepare_packages(log_immediately=False,
                                           packages=todo)

-- 
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