From 26ba46a9e620c5dd5d3699a854a68ab8cab04464 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/4/dodoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ebuild-helpers/4') diff --git a/bin/ebuild-helpers/4/dodoc b/bin/ebuild-helpers/4/dodoc index d32343c71..66a1f088b 100755 --- a/bin/ebuild-helpers/4/dodoc +++ b/bin/ebuild-helpers/4/dodoc @@ -27,6 +27,8 @@ for x in "$@" ; do if [ -d "${x}" ] ; then if [[ ${DOINSRECUR} == "n" ]] ; then + echo "!!! ${0##*/}: $x is a directory" 1>&2 + ((ret|=1)) continue fi @@ -36,7 +38,7 @@ for x in "$@" ; do ${0} -r {} \; elif [ -s "${x}" ] ; then - install -m0644 "${x}" "${dir}" + install -m0644 "${x}" "${dir}" || ((ret|=1)) elif [ ! -e "${x}" ] ; then echo "!!! ${0##*/}: $x does not exist" 1>&2 ((ret|=1)) -- cgit v1.2.3-1-g7c22