From 16a38827b5bb374da6caaf103f9363a45262f745 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Wed, 23 May 2012 08:24:42 -0500 Subject: YUMng: Fix DBStats hooks for centos5 On centos5 the hooks raise a TypeError. Replacing the keys with attributes. --- src/lib/Client/Tools/YUMng.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index cb9c7a87f..febe6b9a0 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -521,9 +521,9 @@ class YUMng(Bcfg2.Client.Tools.PkgTool): package_fail = True stat['version_fail'] = True # Just chose the first pkg for the error message - entry.set('current_version', "%s-%s.%s" % (POs[0]['version'], - POs[0]['release'], - POs[0]['arch'])) + entry.set('current_version', "%s-%s.%s" % (POs[0].version, + POs[0].release, + POs[0].arch)) entry.set('version', "%s-%s.%s" % (nevra['version'], nevra['release'], nevra['arch'])) -- cgit v1.2.3-1-g7c22