On Mon, 2012-08-20 at 16:46 +0200, Zdeněk Pavlas wrote:
> Extend the progress callback API, so we can set multi_objs in urlgrabber.
> Subclass the TextMultiFileMeter and use it as multi-file progress object.
This seems fine, although when I tried putting multifile logic just
inside yum all I seemed to need to do is call newMeter() before the grab
(no urlgrabber changes).
And I "had" to do:
@@ -2137,6 +2139,11 @@ class YumBase(depsolve.Depsolve):
if (hasattr(urlgrabber.progress, 'text_meter_total_size') and
len(remote_pkgs) > 1):
urlgrabber.progress.text_meter_total_size(remote_size)
+
+ if remote_pkgs and remote_pkgs[0].repo.multi_callback: # FIXME: blah
+ remote_pkgs[0].repo.multi_callback.start(len(remote_pkgs),
+ remote_size)
+
beg_download = time.time()
i = 0
local_size = 0
...what is doing this bit in your two patches?
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel