From 3c29ef50d86257960104d6654a17e618fd1cd94a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 28 Jan 2010 14:48:58 +0000 Subject: Fix AttributeError from has_versions for atoms with no USE deps. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=15214 --- pym/portage/dep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dep.py b/pym/portage/dep.py index c241408a5..fe3f04f59 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -620,7 +620,7 @@ class Atom(_atom_base): @rtype: Atom @return: an atom instance with any USE conditionals evaluated """ - if not self.use.conditional: + if not (self.use and self.use.conditional): return self atom = remove_slot(self) if self.slot: -- cgit v1.2.3-1-g7c22