Use EAPI to validate best/has_version atoms.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Oct 2010 01:03:52 +0000 (18:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Oct 2010 01:03:52 +0000 (18:03 -0700)
pym/portage/package/ebuild/_ipc/QueryCommand.py

index 1afe886aa84dfbc4468e7fa4a5123218f8330955..59663b1d966cc40c38954fd3660319034e882651 100644 (file)
@@ -27,7 +27,7 @@ class QueryCommand(IpcCommand):
                cmd, root, atom = argv
 
                try:
-                       atom = Atom(atom)
+                       atom = Atom(atom, eapi=self.settings.get('EAPI'))
                except InvalidAtom:
                        return ('', 'invalid atom: %s\n' % atom, 2)