summaryrefslogtreecommitdiffstats
path: root/iw/package_gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-19 19:38:32 +0000
committerMike Fulbright <msf@redhat.com>2002-06-19 19:38:32 +0000
commita7b6da52feaf812bddbb5e4aa3d35a2d47900de6 (patch)
tree6dfcd7a727f4ef33c652463a9be909b370905216 /iw/package_gui.py
parent94a74cadbd5802c5f0b93d777da512705c99fe28 (diff)
downloadanaconda-a7b6da52feaf812bddbb5e4aa3d35a2d47900de6.tar.gz
anaconda-a7b6da52feaf812bddbb5e4aa3d35a2d47900de6.tar.xz
anaconda-a7b6da52feaf812bddbb5e4aa3d35a2d47900de6.zip
fix for bug #62172
Diffstat (limited to 'iw/package_gui.py')
-rw-r--r--iw/package_gui.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py
index 0c7f0527b..09037172b 100644
--- a/iw/package_gui.py
+++ b/iw/package_gui.py
@@ -177,8 +177,17 @@ class IndividualPackageSelectionWindow (InstallWindow):
buffer = self.packageDesc.get_buffer()
description = self.get_rpm_desc(self.pkgs[package])
- buffer.set_text(description)
-
+ try:
+ version = self.pkgs[package][rpm.RPMTAG_VERSION]
+ except:
+ version = None
+
+ if version:
+ outtext = _("Package: %s\nVersion: %s\n") % (package, version ) + description
+ else:
+ outtext =description
+
+ buffer.set_text(outtext)
else:
buffer = self.packageDesc.get_buffer()
buffer.set_text("")