backtrack_depgraph: get_best_run for last run v2.2.0_alpha20
authorZac Medico <zmedico@gentoo.org>
Sat, 5 Feb 2011 07:32:54 +0000 (23:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 Feb 2011 07:32:54 +0000 (23:32 -0800)
It's essential to feed back autounmask config changes, especially
USE changes, in order to make the last run as successful as possible.
This fixes a regression in the master branch, since commit
2186f87c22e0c4bdb86065855c2034bdbb66fa45.

pym/_emerge/depgraph.py

index 6e8ca3156c6743db05018f891f768158f06ee08c..c4d84ab932f6a74b9fe257f31398b3b6b410185c 100644 (file)
@@ -5771,7 +5771,8 @@ def _backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, sp
 
                mydepgraph = depgraph(settings, trees, myopts, myparams, spinner,
                        frozen_config=frozen_config,
-                       allow_backtracking=False)
+                       allow_backtracking=False,
+                       backtrack_parameters=backtracker.get_best_run())
                success, favorites = mydepgraph.select_files(myfiles)
 
        return (success, mydepgraph, favorites)