Prune circular nested sets from the digraph.
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Oct 2010 20:49:08 +0000 (13:49 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Oct 2010 22:42:58 +0000 (15:42 -0700)
commit10115373eee87e3e1a1a7c85203abe38d16d2de5
tree361367cadae7f47b5f62b462e909716c86cf012a
parentaf8f21eb3f550ba090d0f9afc69a3db3c0747364
Prune circular nested sets from the digraph.

This prevents the following traceback which was reported in forum
thread 847007:

  File "pym/_emerge/depgraph.py", line 3694, in _merge_order_bias
    mygraph.order.sort(key=cmp_sort_key(cmp_merge_preference))
  File "pym/portage/util/__init__.py", line 808, in __lt__
    return self._cmp_func(self._obj, other._obj) < 0
  File "pym/_emerge/depgraph.py", line 3675, in cmp_merge_preference
    if node1.operation == 'uninstall':
AttributeError: 'SetArg' object has no attribute 'operation'
pym/_emerge/depgraph.py