diff options
-rw-r--r-- | pym/_emerge/BlockerCache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/BlockerCache.py b/pym/_emerge/BlockerCache.py index f88a7c43f..de3b65e22 100644 --- a/pym/_emerge/BlockerCache.py +++ b/pym/_emerge/BlockerCache.py @@ -165,6 +165,11 @@ class BlockerCache(portage.cache.mappings.MutableMapping): return iter([]) return iter(self._cache_data["blockers"]) + def __len__(self): + """This needs to be implemented in order to avoid + infinite recursion in some cases.""" + return len(self._cache_data["blockers"]) + def __delitem__(self, cpv): del self._cache_data["blockers"][cpv] |