[game-data-packager] 02/02: progressbar: refresh when 100% is reached

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sun Apr 12 10:01:43 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 4f06f5477d791e6ffc03be2258d3a38fd26cd969
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sun Apr 12 11:59:37 2015 +0200

    progressbar: refresh when 100% is reached
    
    without that, dpkg-deb make it feels GDP has hanged
    (real fix should be to help dpkg on #778451)
---
 game_data_packager/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index fd02872..12fabf6 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -141,7 +141,7 @@ class HashedFile(object):
             pad = [' ']
             def update_progress(s):
                 ts = time.time()
-                if ts < update_progress.ts + 0.2:
+                if ts < update_progress.ts + 0.2 and not s.startswith('100%'):
                     return
                 update_progress.ts = ts
                 if len(pad[0]) <= len(s):

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