summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-04-11 18:52:23 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-04-11 18:52:23 +0000
commit59d0410afbbaa4efee84b49b16d9462b078f476c (patch)
tree45b335f91eec9188b009c76acdb124cf82c11c99 /src
parent172586b06d842395435b982553102bfcede9d2f2 (diff)
downloadbcfg2-59d0410afbbaa4efee84b49b16d9462b078f476c.tar.gz
bcfg2-59d0410afbbaa4efee84b49b16d9462b078f476c.tar.bz2
bcfg2-59d0410afbbaa4efee84b49b16d9462b078f476c.zip
fix single pass install
(Logical change 1.223) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@935 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Toolset.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index b15ada383..1788a4a37 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -448,8 +448,10 @@ class Toolset(object):
if packages:
# try single large install
self.CondPrint("verbose", "Trying single pass package install")
- cmdrc = system(self.pkgtool[0] %
- " ".join(self.pkgtool[1][0] % tuple([pkg.get(field) for field in self.pkgtool[1][1]])))
+ pkglist = " ".join([self.pkgtool[1][0] % tuple([pkg.get(field) for field in self.pkgtool[1][1]])
+ for pkg in packages])
+ self.CondPrint("debug", "Installing packages: %s" % pkglist)
+ cmdrc = system(self.pkgtool[0] % pkglist)
if cmdrc == 0:
self.CondPrint('verbose', "Single Pass Succeded")