From: Daniel Robbins Date: Mon, 12 Jan 2004 07:00:01 +0000 (+0000) Subject: ouch X-Git-Tag: CATALYST_1_0_1~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9457a1530a7821826d0b3958cd192b7e7bdff922;p=catalyst.git ouch git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@145 d1e1f19c-881f-0410-ab34-b69fee027534 --- 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,"<","\\<")