[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/3] Remove unused doneFiles counting from transaction callback



---
 pyanaconda/yuminstall.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index c9be171..877a0f5 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -124,8 +124,6 @@ class AnacondaCallback:
 
         self.donepkgs = 0
         self.doneSize = 0
-        self.doneFiles = 0
-        
 
     def callback(self, what, amount, total, h, user):
         if what == rpm.RPMCALLBACK_TRANS_START:
@@ -211,7 +209,6 @@ class AnacondaCallback:
 
             self.donepkgs += 1
             self.doneSize += self.inProgressPo.returnSimple("installedsize") / 1024.0
-            self.doneFiles += len(hdr[rpm.RPMTAG_BASENAMES])
 
             if self.donepkgs <= self.numpkgs:
                 self.progress.set_text(P_("Packages completed: "
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]