summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-12-21 21:57:34 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-12-21 21:57:34 +0000
commitf8b7ceb302439bdaa459f7b2fed56bc0ccf95922 (patch)
tree19a2cb547bb27ea08d830b57b1ca6ccb030c5001 /src/lib/Server/Plugins
parentb9a13eda93797788677c7082d61955e818edd046 (diff)
downloadbcfg2-f8b7ceb302439bdaa459f7b2fed56bc0ccf95922.tar.gz
bcfg2-f8b7ceb302439bdaa459f7b2fed56bc0ccf95922.tar.bz2
bcfg2-f8b7ceb302439bdaa459f7b2fed56bc0ccf95922.zip
fix deepcopy of lxml structure
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1635 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index 5ce31750c..fe03e184b 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -27,7 +27,9 @@ class PackageEntry(XMLFileBacked):
if location.attrib.has_key('type'):
pkg.set('type', location.get('type'))
if pkg.attrib.has_key("simplefile"):
- self.packages[pkg.get('name')] = deepcopy(pkg.attrib)
+ self.packages[pkg.get('name')] = {}
+ for key in pkg.attrib:
+ self.packages[pkg.get('name')][key] = pkg.attrib[key]
# most attribs will be set from pkg
self.packages[pkg.get('name')]['url'] = "%s/%s" % (location.get('uri'), pkg.get('simplefile'))
elif pkg.attrib.has_key("file"):