From a7b6da52feaf812bddbb5e4aa3d35a2d47900de6 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 19 Jun 2002 19:38:32 +0000 Subject: fix for bug #62172 --- iw/package_gui.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'iw/package_gui.py') 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("") -- cgit