From 4cb1a90241ec5cd142c61ede2edab7c0b5162780 Mon Sep 17 00:00:00 2001 From: Sophia Castellarin Date: Wed, 8 Jan 2020 16:40:04 -0600 Subject: [PATCH] Pick right shortest node --- conda/resolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/resolve.py b/conda/resolve.py index 693a771350f..2796a95b82e 100644 --- a/conda/resolve.py +++ b/conda/resolve.py @@ -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