[game-data-packager] 01/01: fix progress indicator

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Feb 2 09:58:37 UTC 2016


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 7ea053c9ab22e390993004735c03fc3f84d3e927
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Feb 2 10:58:21 2016 +0100

    fix progress indicator
---
 game_data_packager/build.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 736183e..e633ced 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -301,7 +301,7 @@ class PackagingTask(object):
         if hashes is None:
             if size > QUITE_LARGE:
                 logger.info('checking %s', path)
-                progress = self.progress_factory()
+                progress = self.progress_factory
             else:
                 progress = None
 
@@ -620,7 +620,7 @@ class PackagingTask(object):
                 wf = open(tmp, 'wb')
 
                 if entry.size is not None and entry.size > QUITE_LARGE:
-                    progress = self.progress_factory()
+                    progress = self.progress_factory
                     logger.info('extracting %s from %s', entry.name, name)
                 else:
                     progress = None
@@ -669,7 +669,7 @@ class PackagingTask(object):
                         yield open(self.found[p], 'rb')
 
                 if wanted.size >= QUITE_LARGE:
-                    progress = self.progress_factory()
+                    progress = self.progress_factory
                 else:
                     progress = None
 
@@ -789,7 +789,7 @@ class PackagingTask(object):
                         logger.info('downloading %s', url)
                         hf = HashedFile.from_file(url, rf, wf,
                                 size=wanted.size,
-                                progress=self.progress_factory())
+                                progress=self.progress_factory)
                         wf.close()
 
                         if self.use_file(wanted.name, (wanted,), tmp, hf):
@@ -2726,7 +2726,7 @@ class PackagingTask(object):
 
         if size > QUITE_LARGE:
             logger.info('identifying %s', path)
-            progress = self.progress_factory()
+            progress = self.progress_factory
         else:
             progress = None
 

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