better fix (I think)
authorRob Holland <tigger@gentoo.org>
Tue, 3 Feb 2004 10:00:36 +0000 (10:00 +0000)
committerRob Holland <tigger@gentoo.org>
Tue, 3 Feb 2004 10:00:36 +0000 (10:00 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@204 d1e1f19c-881f-0410-ab34-b69fee027534

modules/targets.py

index 398fedd4a7a3479b2b3f3a6bf4be1905ab819b81..464d736d37d901984807ffd563e525f7cd6f67ef 100644 (file)
@@ -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")