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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux