From: Rob Holland Date: Tue, 3 Feb 2004 10:00:36 +0000 (+0000) Subject: better fix (I think) X-Git-Tag: CATALYST_1_0_1~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7df776bbf35e7ee1c088ef6058bb405d0580b700;p=catalyst.git better fix (I think) git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@204 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/modules/targets.py b/modules/targets.py index 398fedd4..464d736d 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -218,7 +218,9 @@ class generic_stage_target(generic_target): def clean(self): destpath=self.settings["chroot_path"] - cleanables=["/etc/resolv.conf","/var/tmp/*","/tmp/*","/root/*","/var/cache/ccache"] + cleanables=["/etc/resolv.conf","/var/tmp/*","/tmp/*","/root/*"] + if self.settings.has_key("CCACHE"): + cleanables.append("/var/cache/ccache/*") if self.settings["target"] not in ["livecd-stage2"]: #we don't need to clean up a livecd-stage2 cleanables.append("/usr/portage")