Make more code conditional on existence of PORTAGE_BUILDDIR inside
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Dec 2009 02:44:26 +0000 (02:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Dec 2009 02:44:26 +0000 (02:44 -0000)
dblink._merge(). (trunk r14955)

svn path=/main/branches/2.1.7/; revision=14956

pym/portage/dbapi/vartree.py

index 9793514a0ea841c8cfaac636ef70d6df634ec14b..b228aeddf4de58f33b753c4b0fdda94d0c5c9a09 100644 (file)
@@ -3263,22 +3263,23 @@ class dblink(object):
                                        self._scheduler.dblinkEbuildPhase(
                                                self, mydbapi, myebuild, phase)
 
-                       # Process ebuild logfiles
-                       elog_process(self.mycpv, self.settings, phasefilter=filter_mergephases)
-                       if 'noclean' not in self.settings.features and \
-                               (retval == os.EX_OK or \
-                               ('fail-clean' in self.settings.features and \
-                               os.path.isdir(self.settings['PORTAGE_BUILDDIR']))):
-                               if myebuild is None:
-                                       myebuild = os.path.join(inforoot, self.pkg + ".ebuild")
+                               elog_process(self.mycpv, self.settings,
+                                       phasefilter=filter_mergephases)
+
+                               if 'noclean' not in self.settings.features and \
+                                       (retval == os.EX_OK or \
+                                       'fail-clean' in self.settings.features):
+                                       if myebuild is None:
+                                               myebuild = os.path.join(inforoot, self.pkg + ".ebuild")
+
+                                       if self._scheduler is None:
+                                               doebuild(myebuild, "clean", myroot,
+                                                       self.settings, tree=self.treetype,
+                                                       mydbapi=mydbapi, vartree=self.vartree)
+                                       else:
+                                               self._scheduler.dblinkEbuildPhase(
+                                                       self, mydbapi, myebuild, "clean")
 
-                               if self._scheduler is None:
-                                       doebuild(myebuild, "clean", myroot,
-                                               self.settings, tree=self.treetype,
-                                               mydbapi=mydbapi, vartree=self.vartree)
-                               else:
-                                       self._scheduler.dblinkEbuildPhase(
-                                               self, mydbapi, myebuild, "clean")
                finally:
                        self.unlockdb()
                        self.vartree.dbapi._bump_mtime(self.mycpv)