Do the clean phase at the end of dblink.treewalk() to ensure that it is triggered...
authorZac Medico <zmedico@gentoo.org>
Sat, 11 Mar 2006 01:03:30 +0000 (01:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 11 Mar 2006 01:03:30 +0000 (01:03 -0000)
svn path=/main/trunk/; revision=2843

bin/emerge
pym/portage.py

index c69725c112bbd983a97c1903d2be29fd42030ad4..7faf822ac71cfd158f527f3dc80f3a3608d46a24 100755 (executable)
@@ -2069,18 +2069,11 @@ class depgraph:
                                                                os.execv(mynewargv[0], mynewargv)
 
                        if ("--pretend" not in myopts) and ("--fetchonly" not in myopts) and ("--fetch-all-uri" not in myopts):
-                               if "noclean" not in portage.features and x[0] != "binary":
+                               if "noclean" not in portage.features:
                                        short_msg = "emerge: (%s of %s) %s Clean Post" % \
                                                (mergecount, len(mymergelist), x[pkgindex])
                                        emergelog(" === (%s of %s) Post-Build Cleaning (%s::%s)" % \
                                                (mergecount, len(mymergelist), x[pkgindex], y), short_msg=short_msg)
-                                       retval = portage.doebuild(y, "clean", myroot,
-                                               self.pkgsettings, edebug, cleanup=1, tree="porttree")
-                                       if (retval == None):
-                                               portage_util.writemsg("Unable to run required binary.\n")
-                                               sys.exit(127)
-                                       if retval:
-                                               sys.exit(retval)
                                emergelog(" ::: completed emerge ("+str(mergecount)+" of "+str(len(mymergelist))+") "+x[2]+" to "+x[1])
 
                        # Unsafe for parallel merges
index af446927ee4147d5c85f6dd0884aa37cb82a1394..122f2e128b86e0f5201e54bbe6b7615ef9a48fc5 100644 (file)
@@ -6097,7 +6097,8 @@ 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)
                return 0
 
        def mergeme(self,srcroot,destroot,outfile,secondhand,stufftomerge,cfgfiledict,thismtime):