diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2010-01-15 17:10:04 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2010-01-15 17:10:04 +0000 |
commit | 2290d0920139c9ac1305a5c8517eeb3215bfd7d4 (patch) | |
tree | c44e54b5e0fd63352a3089e5e011e77ea291fcc8 | |
parent | c5927d262edb1a4d6fb32b03f9baf3f6e85b0b8e (diff) | |
download | bcfg2-2290d0920139c9ac1305a5c8517eeb3215bfd7d4.tar.gz bcfg2-2290d0920139c9ac1305a5c8517eeb3215bfd7d4.tar.bz2 bcfg2-2290d0920139c9ac1305a5c8517eeb3215bfd7d4.zip |
Packages: handle architecture changes in Yum configs [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5684 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index 7dafaff3f..510feeff4 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -305,6 +305,8 @@ class YUMSource(Source): self.save_state() def parse_filelist(self, data, arch): + if arch not in self.filemap: + self.filemap[arch] = dict() for pkg in data.findall(self.fl + 'package'): for fentry in [fe for fe in pkg.findall(self.fl + 'file') \ if fe.text in self.needed_paths]: |