[game-data-packager] 03/03: GOG: avoid duplicate downloads, always recheck if package is already possible

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Sep 17 06:13:36 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 2fbe743d4333fd3c5c5cbea35e056a4be5e63c66
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Sep 17 08:11:39 2015 +0200

    GOG: avoid duplicate downloads, always recheck if package is already possible
---
 game_data_packager/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 2f9a564..8258fd1 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1530,7 +1530,7 @@ class GameData(object):
         if wanted.alternatives:
             for alt in wanted.alternatives:
                 self.file_status[wanted.name] |= self.fill_gap(package,
-                        self.files[alt], download=download, log=False)
+                  self.files[alt], download=download, log=False, recheck=recheck)
 
             if self.file_status[wanted.name] is FillResult.IMPOSSIBLE and log:
                 logger.error('could not find a suitable version of %s:',
@@ -2841,10 +2841,10 @@ class GameData(object):
             if abort:
                 continue
 
-
             logger.debug('will produce %s', package.name)
             result = self.fill_gaps(package=package, download=download,
-                    log=True)
+              log=package.name not in possible_with_lgogdownloader,
+              recheck=package.name in possible_with_lgogdownloader)
             if result is FillResult.COMPLETE:
                 ready.add(package)
             elif download and package.name in possible_with_lgogdownloader:

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