diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-01 19:00:23 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-01 19:00:23 +0000 |
commit | bd4a765b540ebbbfd131b8fe8b40ed70b5f2a667 (patch) | |
tree | 362fca78021fcb78d1396dead84cae50e588a845 /src/lib/Client/Redhat.py | |
parent | 515c5c0ffe784820d63764678afc396b989f7ca9 (diff) | |
download | bcfg2-bd4a765b540ebbbfd131b8fe8b40ed70b5f2a667.tar.gz bcfg2-bd4a765b540ebbbfd131b8fe8b40ed70b5f2a667.tar.bz2 bcfg2-bd4a765b540ebbbfd131b8fe8b40ed70b5f2a667.zip |
Whitespace changes in Logging.py
Fix saferun usage for pkg index building in Redhat.py
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1783 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Redhat.py')
-rw-r--r-- | src/lib/Client/Redhat.py | 3 |
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''' |