summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-16 02:16:26 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-16 02:16:26 +0000
commitc094f8aca0ab9ec363fc2c7221750f50d6708d1d (patch)
treea3a570e342f81ce91ddac9f5367fb0f748b309b9
parent8f82569e0707ed478dd3705f5e37c4a9edab91f7 (diff)
downloadportage-c094f8aca0ab9ec363fc2c7221750f50d6708d1d.tar.gz
portage-c094f8aca0ab9ec363fc2c7221750f50d6708d1d.tar.bz2
portage-c094f8aca0ab9ec363fc2c7221750f50d6708d1d.zip
Split ACCEPT_KEYWORDS before entering the loop for better efficiency.
svn path=/main/trunk/; revision=5300
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
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):