depgraph: trigger reinstalls if backtrack allowed
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Aug 2013 20:21:19 +0000 (13:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Aug 2013 20:21:19 +0000 (13:21 -0700)
This should fix cases where it tries to backtrack but simply aborts
with --backtrack=0.

pym/_emerge/depgraph.py

index 4f9d0f02765effe81169134c0f305bb9efab4c7c..7b77edcda06f4f32e7e9af6ed172b2bc3f64b852 100644 (file)
@@ -5863,7 +5863,8 @@ class depgraph(object):
 
                self._process_slot_conflicts()
 
-               self._slot_operator_trigger_reinstalls()
+               if self._dynamic_config._allow_backtracking:
+                       self._slot_operator_trigger_reinstalls()
 
                if not self._validate_blockers():
                        # Blockers don't trigger the _skip_restart flag, since