Fix equery meta to not remove the first package from the list of matching packages
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 9 Dec 2009 18:54:19 +0000 (18:54 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 9 Dec 2009 18:54:19 +0000 (18:54 -0000)
svn path=/trunk/gentoolkit/; revision=706

pym/gentoolkit/equery/meta.py

index fc38bff365e4dfee92dbc9ff4479a9181bc6e065..bcbbed2997a5e5636468c99d516b7bfda9de5f7a 100644 (file)
@@ -358,7 +358,7 @@ def get_reference_pkg(matches):
 
        pkg = None
        while list(reversed(matches)):
-               pkg = matches.pop()
+               pkg = matches[-1]
                if not pkg.is_overlay():
                        break