Make the clean phase obey keeptemp in FEATURES.
authorZac Medico <zmedico@gentoo.org>
Sat, 11 Mar 2006 19:24:32 +0000 (19:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 11 Mar 2006 19:24:32 +0000 (19:24 -0000)
svn path=/main/trunk/; revision=2854

pym/portage.py

index abcb10acac8b3ceb2fbb37c12e9e66ace9c88546..d9bcc0239190b74ae61845ee3ff6ad5c2a087c42 100644 (file)
@@ -2556,7 +2556,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea
                # Should be ok again to set $T, as sandbox does not depend on it
                # XXX Bug.  no way in hell this is valid for clean handling.
                mysettings["T"]=mysettings["PORTAGE_BUILDDIR"]+"/temp"
-               if cleanup or mydo=="clean":
+               if cleanup:
                        if os.path.exists(mysettings["T"]):
                                shutil.rmtree(mysettings["T"])
                if not os.path.exists(mysettings["T"]):
@@ -6099,7 +6099,7 @@ class dblink:
                # Process ebuild logfiles
                elog_process(self.mycpv, self.settings)
                if "noclean" not in features:
-                       doebuild(myebuild, "clean", root, self.settings, cleanup=cleanup, tree=self.treetype)
+                       doebuild(myebuild, "clean", root, self.settings, tree=self.treetype)
                return 0
 
        def mergeme(self,srcroot,destroot,outfile,secondhand,stufftomerge,cfgfiledict,thismtime):