From: Zac Medico Date: Thu, 26 May 2011 06:40:47 +0000 (-0700) Subject: depgraph: always check for autounmask breakage X-Git-Tag: v2.2.0_alpha37~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa8ff193675224cd110c3c489e561e8e8e30eab3;p=portage.git depgraph: always check for autounmask breakage The 2.1.9 branch already does the same thing since commit 65736474c0d70cb10ff1290b3787b61d8a502aed. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index d7ddd1af0..3dc68ff7c 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -6673,15 +6673,16 @@ def _backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, sp allow_backtracking=False, backtrack_parameters=backtracker.get_best_run()) success, favorites = mydepgraph.select_files(myfiles) - if not success and mydepgraph.autounmask_breakage_detected(): - if "--debug" in myopts: - writemsg_level( - "\n\nautounmask breakage detected\n\n", - noiselevel=-1, level=logging.DEBUG) - myopts["--autounmask"] = "n" - mydepgraph = depgraph(settings, trees, myopts, myparams, spinner, - frozen_config=frozen_config, allow_backtracking=False) - success, favorites = mydepgraph.select_files(myfiles) + + if not success and mydepgraph.autounmask_breakage_detected(): + if "--debug" in myopts: + writemsg_level( + "\n\nautounmask breakage detected\n\n", + noiselevel=-1, level=logging.DEBUG) + myopts["--autounmask"] = "n" + mydepgraph = depgraph(settings, trees, myopts, myparams, spinner, + frozen_config=frozen_config, allow_backtracking=False) + success, favorites = mydepgraph.select_files(myfiles) return (success, mydepgraph, favorites)