diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-15 18:09:04 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-15 18:09:04 +0000 |
commit | 66c0bbbd4f5a0e98a9df138e84b41b317c946cda (patch) | |
tree | 2b50d58cec1ecb9aea75c4e14f03af8d28eacccf | |
parent | f9f9ee308ffa202ab205ab723a66d8e51c298214 (diff) | |
download | portage-66c0bbbd4f5a0e98a9df138e84b41b317c946cda.tar.gz portage-66c0bbbd4f5a0e98a9df138e84b41b317c946cda.tar.bz2 portage-66c0bbbd4f5a0e98a9df138e84b41b317c946cda.zip |
Make depgraph.display_problems() send unsatisfied dependency ouput to stdout,
for parsing by programs such as autounmask.
svn path=/main/trunk/; revision=11949
-rw-r--r-- | pym/_emerge/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index f09396277..9c90e736c 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7578,7 +7578,8 @@ class depgraph(object): is not going to be called then this method should be called explicitly to ensure that the user is notified of problems with the graph. - All output goes to stderr. + All output goes to stderr, except for unsatisfied dependencies which + go to stdout for parsing by programs such as autounmask. """ # Note that show_masked_packages() sends it's output to @@ -7600,6 +7601,10 @@ class depgraph(object): sys.stdout.flush() sys.stderr.flush() + # This goes to stdout for parsing by programs like autounmask. + for pargs, kwargs in self._unsatisfied_deps_for_display: + self._show_unsatisfied_dep(*pargs, **kwargs) + def _display_problems(self): if self._circular_deps_for_display is not None: self._show_circular_deps( @@ -7695,9 +7700,6 @@ class depgraph(object): show_mask_docs() print - for pargs, kwargs in self._unsatisfied_deps_for_display: - self._show_unsatisfied_dep(*pargs, **kwargs) - def calc_changelog(self,ebuildpath,current,next): if ebuildpath == None or not os.path.exists(ebuildpath): return [] |