From 31d69b9b8711dbc0f411637959d999e94dc0e02b Mon Sep 17 00:00:00 2001 From: Ulrich Mueller Date: Fri, 25 Feb 2011 08:43:17 +0100 Subject: dodoc: Honour exit status of install, bug 356389. --- bin/ebuild-helpers/dodoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/ebuild-helpers/dodoc') diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc index 29b690112..67391a855 100755 --- a/bin/ebuild-helpers/dodoc +++ b/bin/ebuild-helpers/dodoc @@ -16,8 +16,10 @@ fi ret=0 for x in "$@" ; do - if [ -s "${x}" ] ; then - install -m0644 "${x}" "${dir}" + if [ -d "${x}" ] ; then + eqawarn "QA Notice: dodoc argument '${x}' is a directory" + elif [ -s "${x}" ] ; then + install -m0644 "${x}" "${dir}" || { ((ret|=1)); continue; } ecompress --queue "${dir}/${x##*/}" elif [ ! -e "${x}" ] ; then echo "!!! ${0##*/}: $x does not exist" 1>&2 -- cgit v1.2.3-1-g7c22