[SCM] morituri/master: * morituri/common/task.py: Make sure we also show progress when it's 0%, at the start.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:08:47 UTC 2014


The following commit has been merged in the master branch:
commit cfeedbca3c39a92705fda79deb3d125850e885f7
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Apr 19 21:48:23 2009 +0000

    	* morituri/common/task.py:
    	  Make sure we also show progress when it's 0%, at the start.

diff --git a/ChangeLog b/ChangeLog
index 01bb389..459c414 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-04-19  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/common/task.py:
+	  Make sure we also show progress when it's 0%, at the start.
+
+2009-04-19  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/image/cue.py:
 	  Use names for matches in regexps.
 
diff --git a/morituri/common/task.py b/morituri/common/task.py
index 2bcb38c..fd2ac6d 100644
--- a/morituri/common/task.py
+++ b/morituri/common/task.py
@@ -76,7 +76,7 @@ class Task(object):
         Notify about progress changes bigger than the increment.
         Called by subclass implementations as the task progresses.
         """
-        if value - self.progress > self.increment or value >= 1.0:
+        if value - self.progress > self.increment or value >= 1.0 or value == 0.0:
             self.progress = value
             self._notifyListeners('progressed', value)
             self.debug('notifying progress', value)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list