Skip to content

Commit

Permalink
Pick right shortest node
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophia Castellarin committed Jan 8, 2020
1 parent c448a57 commit 4cb1a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def build_conflict_map(self, specs, specs_to_add=None, history_specs=None):
requested_spec_unsat = frozenset(nodes).intersection(set(_.name for _ in roots))
if requested_spec_unsat:
chains.append([_ for _ in roots if _.name in requested_spec_unsat])
shortest_node = chains[0][0]
shortest_node = chains[-1][0]
for root in roots:
if root != chains[0][0]:
search_node = shortest_node.name
Expand Down

0 comments on commit 4cb1a90

Please sign in to comment.