Split ACCEPT_KEYWORDS before entering the loop for better efficiency.
authorZac Medico <zmedico@gentoo.org>
Sat, 16 Dec 2006 02:16:26 +0000 (02:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 16 Dec 2006 02:16:26 +0000 (02:16 -0000)
svn path=/main/trunk/; revision=5300

pym/portage.py

index 53b0a2c8a52663a3da9ee5bd5db6026963eea465..22e6455d6caa6ef4928c1441a45417730cdfeca6 100644 (file)
@@ -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):