From 9457a1530a7821826d0b3958cd192b7e7bdff922 Mon Sep 17 00:00:00 2001 From: Daniel Robbins Date: Mon, 12 Jan 2004 07:00:01 +0000 Subject: [PATCH] ouch git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@145 d1e1f19c-881f-0410-ab34-b69fee027534 --- modules/targets.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/targets.py b/modules/targets.py index 3f1a42a9..06b6232f 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -417,7 +417,11 @@ class livecd_stage1_target(generic_stage_target): generic_stage_target.__init__(self,spec,addlargs) def run_local(self): - mypack=string.join(self.settings["livecd/packages"]) + mypack=self.settings["livecd/packages"][:] + for x in range(0,len(mypack)): + #surround args with quotes for passing to bash, allows things like "<" to remain intact + mypack[x]="'"+mypack[x]+"'" + mypack=string.join(mypack) #escape ">" and "<" for the shell (using backslash) mypack=string.replace(mypack,">","\\>") mypack=string.replace(mypack,"<","\\<") -- 2.26.2