git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@47
d1e1f19c-881f-0410-ab34-
b69fee027534
print "catalyst: "+msg
def cmd(mycmd,myexc=""):
+ print "Running command \""+mycmd+"\""
retval=os.system(mycmd)
if retval != 0:
raise CatalystError,myexc
#this next stuff can eventually be integrated into the python and glibc ebuilds themselves (USE="build"):
cleanables.extend(["/usr/share/gettext","/usr/lib/python2.2/test","/usr/lib/python2.2/encodings","/usr/lib/python2.2/email","/usr/lib/python2.2/lib-tk","/usr/share/zoneinfo"])
for x in cleanables:
+ print "Cleaning chroot: "+x+"..."
cmd("rm -rf "+destpath+x,"Couldn't clean "+x)
cmd(self.settings["storedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+".sh clean","clean script failed.")