aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/output_managers
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-26 22:24:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-26 22:24:18 +0000
commit122deff0405e27bf99a4ba04dcc9019cc9eb50d1 (patch)
tree54362b2c3f932f37c8e2d30e51396421be6c533f /paludis/environments/paludis/output_managers
parent5792dd3cc81e6099ca98a6c7d76183aee6f3d596 (diff)
downloadpaludis-122deff0405e27bf99a4ba04dcc9019cc9eb50d1.tar.gz
paludis-122deff0405e27bf99a4ba04dcc9019cc9eb50d1.tar.xz
Catch fetch errors at pretend time.
Fixes: ticket:685
Diffstat (limited to 'paludis/environments/paludis/output_managers')
-rw-r--r--paludis/environments/paludis/output_managers/Makefile.am1
-rw-r--r--paludis/environments/paludis/output_managers/standard_on_failure.conf6
2 files changed, 7 insertions, 0 deletions
diff --git a/paludis/environments/paludis/output_managers/Makefile.am b/paludis/environments/paludis/output_managers/Makefile.am
index b2fdadb94..46cf87b37 100644
--- a/paludis/environments/paludis/output_managers/Makefile.am
+++ b/paludis/environments/paludis/output_managers/Makefile.am
@@ -15,6 +15,7 @@ dist_shareenvpaludis_DATA = \
logged.conf \
quiet.conf \
standard.conf \
+ standard_on_failure.conf \
keep_messages.part.conf \
keep_stdout_as_messages.part.conf \
logged_only.part.conf \
diff --git a/paludis/environments/paludis/output_managers/standard_on_failure.conf b/paludis/environments/paludis/output_managers/standard_on_failure.conf
new file mode 100644
index 000000000..f6dd6e04b
--- /dev/null
+++ b/paludis/environments/paludis/output_managers/standard_on_failure.conf
@@ -0,0 +1,6 @@
+# This handler saves up output (in memory, so don't use it for big processes)
+# and displays it to standard only if an error occurs.
+
+handler = forward_on_failure
+child = standard
+