From: Zac Medico Date: Sat, 16 Dec 2006 02:16:26 +0000 (-0000) Subject: Split ACCEPT_KEYWORDS before entering the loop for better efficiency. X-Git-Tag: v2.1.2~292 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c094f8aca0ab9ec363fc2c7221750f50d6708d1d;p=portage.git Split ACCEPT_KEYWORDS before entering the loop for better efficiency. svn path=/main/trunk/; revision=5300 --- diff --git a/pym/portage.py b/pym/portage.py index 53b0a2c8a..22e6455d6 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5678,6 +5678,7 @@ class portdbapi(dbapi): return [] newlist=[] + accept_keywords = self.mysettings["ACCEPT_KEYWORDS"].split() pkgdict = self.mysettings.pkeywordsdict for mycpv in mylist: #we need to update this next line when we have fully integrated the new db api @@ -5704,7 +5705,7 @@ class portdbapi(dbapi): continue mygroups=keys.split() # Repoman may modify this attribute as necessary. - pgroups = self.mysettings["ACCEPT_KEYWORDS"].split() + pgroups = accept_keywords[:] match=0 cp = dep_getkey(mycpv) if pkgdict.has_key(cp):