---
 output.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/output.py b/output.py
index 71e4e24..6602e1a 100755
--- a/output.py
+++ b/output.py
@@ -1010,8 +1010,12 @@ class YumOutput:
             (n,a,e,v,r) = po.pkgtup
             evr = po.printVer()
             repoid = po.ui_from_repo
-            pkgsize = float(po.size)
-            size = self.format_number(pkgsize)
+            try:
+                pkgsize = float(po.size)
+                size = self.format_number(pkgsize)
+            except: # TypeError when on i386 with > 2GB size
+                # Note: Translation should be <= 5 characters wide
+                size = _("N/A")
 
             if a is None: # gpgkeys are weird
                 a = 'noarch'
-- 
1.7.3.4

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to