diff options
-rw-r--r-- | pym/_emerge/__init__.py | 27 |
1 files changed, 26 insertions, 1 deletions
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 |