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

[PATCH 3/3] Get size + summary from yum package object instead of callback key



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

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 93f980a..1aa9d72 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -162,12 +162,12 @@ class AnacondaCallback:
 
             if self.anaconda.upgrade:
                 s = to_unicode(_("<b>Upgrading %(pkgStr)s</b> (%(size)s)\n")) \
-                        % {'pkgStr': pkgStr, 'size': size_string(hdr['size'])}
+                    % {'pkgStr': pkgStr, 'size': size_string(po.installedsize)}
             else:
                 s = to_unicode(_("<b>Installing %(pkgStr)s</b> (%(size)s)\n")) \
-                        % {'pkgStr': pkgStr, 'size': size_string(hdr['size'])}
+                    % {'pkgStr': pkgStr, 'size': size_string(po.installedsize)}
 
-            summary = to_unicode(gettext.ldgettext("redhat-dist", hdr['summary'] or ""))
+            summary = to_unicode(gettext.ldgettext("redhat-dist", po.summary] or ""))
             s += summary.strip()
             self.progress.set_label(s)
 
-- 
1.7.4


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