From f20d75c51ffa1cfb009dd40237c9f492d74b989a Mon Sep 17 00:00:00 2001 From: Ulrich Mueller Date: Fri, 25 Feb 2011 08:43:17 +0100 Subject: [PATCH] dodoc: Honour exit status of install, bug 356389. --- bin/ebuild-helpers/4/dodoc | 2 +- bin/ebuild-helpers/dodoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ebuild-helpers/4/dodoc b/bin/ebuild-helpers/4/dodoc index d32343c..0fdf357 100755 --- a/bin/ebuild-helpers/4/dodoc +++ b/bin/ebuild-helpers/4/dodoc @@ -36,7 +36,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)) diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc index 29b6901..ad7b693 100755 --- a/bin/ebuild-helpers/dodoc +++ b/bin/ebuild-helpers/dodoc @@ -17,7 +17,7 @@ fi ret=0 for x in "$@" ; do if [ -s "${x}" ] ; then - install -m0644 "${x}" "${dir}" + install -m0644 "${x}" "${dir}" || { ((ret|=1)); continue; } ecompress --queue "${dir}/${x##*/}" elif [ ! -e "${x}" ] ; then echo "!!! ${0##*/}: $x does not exist" 1>&2 -- 1.7.4.1