summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-22 11:41:54 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-22 11:41:54 -0700
commit2960e0d0fc5ad933ca39e0fc338b56da6de9fe52 (patch)
treefef11886d6f4c69480d8dfa954c084f89f8fe33f
parentaa0250820f53fc0bb32e49ca753af136c6a4d19e (diff)
downloadportage-2960e0d0fc5ad933ca39e0fc338b56da6de9fe52.tar.gz
portage-2960e0d0fc5ad933ca39e0fc338b56da6de9fe52.tar.bz2
portage-2960e0d0fc5ad933ca39e0fc338b56da6de9fe52.zip
Add back _conditionals_class.values() method in order to fix breakage
in circular_dependency_handler._find_suggestions().
-rw-r--r--pym/portage/dep/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py
index 979f2c9fb..5813009ac 100644
--- a/pym/portage/dep/__init__.py
+++ b/pym/portage/dep/__init__.py
@@ -566,6 +566,11 @@ class _use_dep(object):
class _conditionals_class(object):
__slots__ = ("enabled", "disabled", "equal", "not_equal")
+ def values(self):
+ for k in self.__slots__:
+ v = getattr(self, k, None)
+ if v:
+ yield v
def __init__(self, use):
enabled_flags = set()