summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2010-01-15 17:10:04 +0000
committerNarayan Desai <desai@mcs.anl.gov>2010-01-15 17:10:04 +0000
commit2290d0920139c9ac1305a5c8517eeb3215bfd7d4 (patch)
treec44e54b5e0fd63352a3089e5e011e77ea291fcc8 /src/lib
parentc5927d262edb1a4d6fb32b03f9baf3f6e85b0b8e (diff)
downloadbcfg2-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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Packages.py2
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]: