summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-29 18:52:28 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-29 18:52:28 +0000
commit8064fa121fce17426a4fca457206db721d7ad7d6 (patch)
tree77f01ed9bcc3fc19cf1bce61eeb6ea9d71efc276 /bin/portageq
parent917d4486a46eedd768c0dba656ae9e61fbe2d54a (diff)
downloadportage-8064fa121fce17426a4fca457206db721d7ad7d6.tar.gz
portage-8064fa121fce17426a4fca457206db721d7ad7d6.tar.bz2
portage-8064fa121fce17426a4fca457206db721d7ad7d6.zip
Fix AttributeError from has_versions for atoms with no USE deps. Thanks to
Arfrever for reporting. (trunk r15214) svn path=/main/branches/2.1.7/; revision=15265
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/portageq b/bin/portageq
index 909876cc8..5cae93155 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -47,8 +47,8 @@ from portage import os
from portage.util import writemsg, writemsg_stdout
def eval_atom_use(atom):
- if atom.use.conditional and 'USE' in os.environ:
- use = os.environ['USE'].split()
+ if 'USE' in os.environ:
+ use = frozenset(os.environ['USE'].split())
atom = atom.evaluate_conditionals(use)
return atom