X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F03-get-sources;h=4deb887f5c069098ee790271b3f7d9948153f277;hp=4e20182fa1291b060cec12c9a638860f3a2cb171;hb=5cc5ed05cef0ece968315276fca99e83696b1063;hpb=54e14988881e983c401f5b04fd9938d78a7cf90b diff --git a/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources b/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources index 4e20182..4deb887 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources +++ b/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources @@ -42,11 +42,19 @@ apt-get --download-only source "$package" 2>>/grml-live/sources/errors.log EOT done - if grep -q . "${target}/grml-live/sources/errors.log" ; then + if grep -q '^E:' "${target}/grml-live/sources/errors.log" ; then echo "Errors noticed while retrieving sources:" >&2 cat "${target}/grml-live/sources/errors.log" >&2 bailout exit 1 + elif grep -q '^W:' "${target}/grml-live/sources/errors.log" ; then + echo "Warnings noticed while retrieving sources (not failing the build though):" + cat "${target}/grml-live/sources/errors.log" + elif grep -q '.' "${target}/grml-live/sources/errors.log" ; then + echo "Unclassified problems noticed while retrieving sources:" >&2 + cat "${target}/grml-live/sources/errors.log" >&2 + bailout + exit 1 fi fi