From: Zac Medico Date: Tue, 14 Mar 2006 07:00:25 +0000 (-0000) Subject: Move the "noclean" feature check into clean phase part of doebuild. X-Git-Tag: v2.1_pre7~93 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0fa70a4875fcda4c4870bd0349d32746b43d6db;p=portage.git Move the "noclean" feature check into clean phase part of doebuild. svn path=/main/trunk/; revision=2879 --- diff --git a/pym/portage.py b/pym/portage.py index 94e626279..fa7be3660 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2722,6 +2722,8 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea # if any of these are being called, handle them -- running them out of the sandbox -- and stop now. if mydo in ["clean","cleanrm"]: + if "noclean" in features: + return 0 return spawn(EBUILD_SH_BINARY+" clean",mysettings,debug=debug,free=1,logfile=None) elif mydo in ["help","setup"]: return spawn(EBUILD_SH_BINARY+" "+mydo,mysettings,debug=debug,free=1,logfile=logfile) @@ -5838,8 +5840,7 @@ class dblink: if a != 0: writemsg("!!! FAILED postrm: "+str(a)+"\n") sys.exit(123) - if "noclean" not in features: - doebuild(myebuildpath, "cleanrm", self.myroot, self.settings, tree=self.treetype) + doebuild(myebuildpath, "cleanrm", self.myroot, self.settings, tree=self.treetype) self.unlockdb() def isowner(self,filename,destroot): @@ -6077,8 +6078,7 @@ class dblink: # Process ebuild logfiles elog_process(self.mycpv, self.settings) - if "noclean" not in features: - doebuild(myebuild, "clean", root, self.settings, tree=self.treetype) + doebuild(myebuild, "clean", root, self.settings, tree=self.treetype) return 0 def mergeme(self,srcroot,destroot,outfile,secondhand,stufftomerge,cfgfiledict,thismtime):