[game-data-packager] 12/24: fill_gaps: call fill_gap for an alternative before using its status

Simon McVittie smcv at debian.org
Sat Jan 17 23:28:50 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 1e67a89873c1d6ab4c71551475625115d5b0c741
Author: Simon McVittie <smcv at debian.org>
Date:   Sat Jan 17 22:22:14 2015 +0000

    fill_gaps: call fill_gap for an alternative before using its status
    
    Otherwise, its status might remain UNDETERMINED, and
    UNDETERMINED & COMPLETE = COMPLETE, resulting in the code thinking
    a package is feasible when actually it isn't.
---
 lib/game_data_packager/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 07c02ee..9afc70d 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -930,6 +930,8 @@ class GameData(object):
 
                 if wanted.alternatives:
                     for alt in wanted.alternatives:
+                        self.fill_gap(package, self.files[alt],
+                                download=download, log=log)
                         self.file_status[filename] |= self.file_status[alt]
                 else:
                     # updates file_status as a side-effect

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