From 600d183d2967ed32cba4f89ebc5f9874f7ce42ff Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sat, 14 Jun 2008 18:25:05 +0100 Subject: Add Echo_breakage for messages preceeding often-breaking stages and use before {c,}debootstrap calls --- functions/echo.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'functions') diff --git a/functions/echo.sh b/functions/echo.sh index 963e12503..5c641d2b1 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -52,3 +52,19 @@ Echo_warning () echo "W: ${STRING}" } + +Echo_breakage () +{ + Echo_message "If the following stage fails, the most likely cause of the problem is with" + + case "${LH_DISTRIBUTION}" in + sid|unstable) + Echo_message "your mirror configuration, a caching proxy or the sid distribution." + ;; + *) + Echo_message "your mirror configuration or a caching proxy." + ;; + esac + + Echo_message ${@} +} -- cgit v1.2.3