From: Zac Medico Date: Mon, 7 Dec 2009 02:43:55 +0000 (-0000) Subject: Make more code conditional on existence of PORTAGE_BUILDDIR inside X-Git-Tag: v2.2_rc56~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b61d8aacf09dbeca1579823998c5f61bd13bc4b4;p=portage.git Make more code conditional on existence of PORTAGE_BUILDDIR inside dblink._merge(). svn path=/main/trunk/; revision=14955 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index a424dea0a..85c41d470 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -4421,22 +4421,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.vartree.dbapi.linkmap._clear_cache() self.unlockdb()