From c094f8aca0ab9ec363fc2c7221750f50d6708d1d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 16 Dec 2006 02:16:26 +0000 Subject: [PATCH] Split ACCEPT_KEYWORDS before entering the loop for better efficiency. svn path=/main/trunk/; revision=5300 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.26.2