client/rhel/rhn-client-tools/src/up2date_client/up2dateUtils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f955f71174c0655d899684396e8c72a1711df2c9
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Thu Jun 3 11:55:04 2010 +0200
598890 - always return product version as string
This is to avoid registration (tui) errors:
Traceback (most recent call last):
File "/usr/sbin/rhn_register", line 75, in <module>
app.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhn_register", line 57, in main
ui.main()
File "/usr/share/rhn/up2date_client/tui.py", line 1203, in main
tui.run()
File "/usr/share/rhn/up2date_client/tui.py", line 1151, in run
win = self.windows[index](self.screen, self)
File "/usr/share/rhn/up2date_client/tui.py", line 603, in __init__
hardware_text += _("Version: ") + up2dateUtils.getVersion() + "
"
<type 'exceptions.TypeError'>: cannot concatenate 'str' and
'int'
objects
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/up2dateUtils.py
b/client/rhel/rhn-client-tools/src/up2date_client/up2dateUtils.py
index f2eded1..117c9d0 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateUtils.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateUtils.py
@@ -41,7 +41,7 @@ def getVersion():
Returns the version of redhat-release rpm
'''
os_release, version, release = _getOSVersionAndRelease()
- return version
+ return str(version)
def getOSRelease():
'''
Show replies by date