Fix progress bars.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 30 Apr 2009 14:17:59 +0000 (14:19 +0002)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 30 Apr 2009 14:17:59 +0000 (14:19 +0002)
dulwich/pack.py

index 99651b550160cadcbf856f7e55183d0a0c75d46c..4dfd38760b7d4bfe2c6b403f6a8ff764bc307934 100644 (file)
@@ -515,7 +515,7 @@ class PackData(object):
                 ret = (self.offset, type, obj, crc32)
                 self.offset += total_size
                 if progress:
-                    progress(self.i, num)
+                    progress(self.i, self.num)
                 self.i+=1
                 return ret
         return ObjectIterator(self)