summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-07-18 16:02:27 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-07-18 16:02:27 +0000
commit6863b6407e769c7431fb2a00d15618ce9607a00e (patch)
treedbfeb0dba103698cfdddf7b4098dad576d201aeb /src
parent053b7db0f0ef38cf72a27f5e20fcf3432fc9f11e (diff)
downloadbcfg2-6863b6407e769c7431fb2a00d15618ce9607a00e.tar.gz
bcfg2-6863b6407e769c7431fb2a00d15618ce9607a00e.tar.bz2
bcfg2-6863b6407e769c7431fb2a00d15618ce9607a00e.zip
Use dictionary substitution of formatting strings for multiarch support
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1967 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index d358127c4..7dc7a1bd2 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -33,7 +33,7 @@ class PNode(Bcfg2.Server.Plugin.INode):
if pkg.attrib.has_key('multiarch'):
archs = pkg.get('multiarch').split()
srcs = pkg.get('srcs', pkg.get('multiarch')).split()
- url = ' '.join(["%s/%s" % (pkg.get('uri'), pkg.get('file') % (srcs[idx], archs[idx]))
+ url = ' '.join(["%s/%s" % (pkg.get('uri'), pkg.get('file') % {'src':srcs[idx], 'arch':archs[idx]})
for idx in range(len(archs))])
pkg.set('url', url)
else: