summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Redhat.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Redhat.py')
-rw-r--r--src/lib/Client/Redhat.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py
index 3d5e3c73c..d7b28c6fe 100644
--- a/src/lib/Client/Redhat.py
+++ b/src/lib/Client/Redhat.py
@@ -32,8 +32,7 @@ class ToolsetImpl(Toolset):
'''Refresh memory hashes of packages'''
self.installed = {}
for line in self.saferun("rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n'")[1]:
- [name, version] = line.split(' ')
- self.installed[name] = version[:-1]
+ [self.installed.update({name:version}) for (name, version) in line.split(' ')]
def VerifyService(self, entry):
'''Verify Service status for entry'''