[yum-git] yum/__init__.py

James Antill james at linux.duke.edu
Mon Apr 7 14:28:39 UTC 2008


 yum/__init__.py |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit 1c7ee0e1394142dced78cc9a18690eb2e38395fe
Author: James Antill <james at and.org>
Date:   Mon Apr 7 10:21:54 2008 -0400

    Get rid of the final stats. -- we can't call .format_number() from here

diff --git a/yum/__init__.py b/yum/__init__.py
index bfb22ec..099cac4 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1039,7 +1039,6 @@ class YumBase(depsolve.Depsolve):
         remote_pkgs = []
         remote_size = 0
         local_size  = 0
-        beg_time    = time.time()
         for po in pkglist:
             if hasattr(po, 'pkgtype') and po.pkgtype == 'local':
                 continue
@@ -1093,19 +1092,6 @@ class YumBase(depsolve.Depsolve):
 
                 local_size += po.size
                 if local_size == remote_size:
-                    secs = (time.time() - beg_time)
-                    if secs > (60 * 60):
-                        hrs = secs / (60 * 60)
-                        secs %= (60 * 60)
-                        ui_secs = '%d:%02d:%02d' % (hrs, secs / 60, secs % 60)
-                    else:
-                        ui_secs = '%02d:%02d' % (secs / 60, secs % 60)
-                    per_sec_size = local_size / secs
-                    self.verbose_logger.log(logginglevels.INFO_1,
-                                            _("Downloaded %s at %s/s in %s"),
-                                            self.format_number(local_size),
-                                            self.format_number(per_sec_size),
-                                            ui_secs)
                     continue
 
                 beg_len = len("(%s/%s)" % (i, len(remote_pkgs)))



More information about the Yum-cvs-commits mailing list