From 43411c1f30d3c4591f549feb9aaf24c6c023b6d8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Jul 2008 13:58:30 +0000 Subject: [PATCH] In --keep-going mode, display the new merge list when appropriate. svn path=/main/trunk/; revision=10928 --- pym/_emerge/__init__.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 82bbc97ef..72413191b 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7603,6 +7603,17 @@ class Scheduler(object): """ print colorize("GOOD", "*** Resuming merge...") + if self._show_list(): + if "--tree" in self.myopts: + portage.writemsg_stdout("\n" + \ + darkgreen("These are the packages that " + \ + "would be merged, in reverse order:\n\n")) + + else: + portage.writemsg_stdout("\n" + \ + darkgreen("These are the packages that " + \ + "would be merged, in order:\n\n")) + show_spinner = "--quiet" not in self.myopts and \ "--nodeps" not in self.myopts @@ -7617,8 +7628,14 @@ class Scheduler(object): if show_spinner: print "\b\b... done!" + if self._show_list(): + mylist = mydepgraph.altlist() + if "--tree" in self.myopts: + mylist.reverse() + mydepgraph.display(mylist, favorites=self._favorites) + + mydepgraph.display_problems() if not success: - mydepgraph.display_problems() return (None, None) mylist = mydepgraph.altlist() @@ -7626,6 +7643,14 @@ class Scheduler(object): mydepgraph.break_refs(dropped_tasks) return (mylist, dropped_tasks) + def _show_list(self): + myopts = self.myopts + if "--quiet" not in myopts and \ + ("--ask" in myopts or "--tree" in myopts or \ + "--verbose" in myopts): + return True + return False + def _register(self, f, eventmask, handler): """ @rtype: Integer -- 2.26.2