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>
Sat, 2 Oct 2010 20:49:08 +0000 (13:49 -0700)
commit3bfe3980538b814b5a1dda1ca512f0f7f4770a09
treed37c14e04c184d25224995e116b4ff2db661f2dd
parentba8749938a870e85bf82a18916493d44eb9a4517
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