From: Zac Medico Date: Fri, 1 Jun 2007 19:23:59 +0000 (-0000) Subject: Don't repeatedly invoke the depend phase for ebuilds that are already known to be... X-Git-Tag: v2.1.2.10~23 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=309c4295f0d08454717deb6367cb4aa278fefed3;p=portage.git Don't repeatedly invoke the depend phase for ebuilds that are already known to be broken. (trunk r6707) svn path=/main/branches/2.1.2/; revision=6714 --- diff --git a/pym/portage.py b/pym/portage.py index d4c6615b9..8d42596f2 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5755,6 +5755,7 @@ class portdbapi(dbapi): # Selectively cache metadata in order to optimize dep matching. self._aux_cache_keys = set(["EAPI", "KEYWORDS", "SLOT"]) self._aux_cache = {} + self._broken_ebuilds = set() def _init_cache_dirs(self): """Create /var/cache/edb/dep and adjust permissions for the portage @@ -5913,6 +5914,8 @@ class portdbapi(dbapi): writemsg("auxdb is valid: "+str(not doregen)+" "+str(pkg)+"\n", 2) if doregen: + if myebuild in self._broken_ebuilds: + raise KeyError(mycpv) writemsg("doregen: %s %s\n" % (doregen,mycpv), 2) writemsg("Generating cache entry(0) for: "+str(myebuild)+"\n",1) @@ -5922,6 +5925,7 @@ class portdbapi(dbapi): self.doebuild_settings["ROOT"], self.doebuild_settings, dbkey=mydata, tree="porttree", mydbapi=self) if myret != os.EX_OK: + self._broken_ebuilds.add(myebuild) raise KeyError(mycpv) if "EAPI" not in mydata or not mydata["EAPI"].strip():