[game-data-packager] 02/03: PackagingTask: load_file_data at the end of __init__
Simon McVittie
smcv at debian.org
Sun Oct 4 20:24:19 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 225ff3510f7a5ac1629b0271921274ad54c8873b
Author: Simon McVittie <smcv at debian.org>
Date: Sun Oct 4 21:13:45 2015 +0100
PackagingTask: load_file_data at the end of __init__
This makes our __del__ work correctly even if load_file_data throws
an exception.
---
game_data_packager/build.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 4de66fb..68fb590 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -328,7 +328,6 @@ class PackagingTask(object):
def __init__(self, game):
# A GameData object.
self.game = game
- self.game.load_file_data()
# A temporary directory.
self.__workdir = None
@@ -381,6 +380,8 @@ class PackagingTask(object):
# list: arbitrary options (e.g. -z9 -Zgz -Sfixed)
self.compress_deb = game.compress_deb
+ self.game.load_file_data()
+
def __del__(self):
self.__exit__()
--
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