[game-data-packager] 01/01: sort by size: workaround resource.1?106_cd with size None
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed Nov 25 05:42:41 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 416b36940b8280e9da4b3c2e935775fe1e9c18bb
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed Nov 25 06:41:40 2015 +0100
sort by size: workaround resource.1?106_cd with size None
---
game_data_packager/build.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 2a62c6e..6aee635 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -997,7 +997,7 @@ class PackagingTask(object):
if len(providers) > 1:
sizes = dict()
for provider_name in providers:
- sizes[provider_name] = self.game.files[provider_name].size
+ sizes[provider_name] = self.game.files[provider_name].size or 0
providers = sorted(sizes, key=sizes.get)
for provider_name in providers:
--
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