From: Peter Palfrader Date: Wed, 9 Apr 2014 11:22:53 +0000 (+0200) Subject: Print clearer problem report if setup-dchroot fails X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f1cb0cac771d159ae750c358f25e6e0778e70d15;p=mirror%2Fdsa-puppet.git Print clearer problem report if setup-dchroot fails --- diff --git a/modules/porterbox/files/setup-all-dchroots b/modules/porterbox/files/setup-all-dchroots index 23867bb93..665e25497 100755 --- a/modules/porterbox/files/setup-all-dchroots +++ b/modules/porterbox/files/setup-all-dchroots @@ -67,7 +67,13 @@ err=0 for a in $archs; do for s in `get_suites "$a"`; do - setup-dchroot -f -a "$a" "$s" || err=1 + if ! setup-dchroot -f -a "$a" "$s"; then + err=1 + echo >&2 + echo >&2 "Error: setting up $s:$a dchroot failed." + echo >&2 + echo >&2 + fi done done