ouch
authorDaniel Robbins <drobbins@gentoo.org>
Mon, 12 Jan 2004 07:00:01 +0000 (07:00 +0000)
committerDaniel Robbins <drobbins@gentoo.org>
Mon, 12 Jan 2004 07:00:01 +0000 (07:00 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@145 d1e1f19c-881f-0410-ab34-b69fee027534

modules/targets.py

index 3f1a42a9a87752c4bec1761c585f28d97ef33a9d..06b6232f69142656ac239a03b4ba104503133ce9 100644 (file)
@@ -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,"<","\\<")