aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-25 20:32:21 (GMT)
committerZac Medico <zmedico@gentoo.org>2011-02-25 20:32:21 (GMT)
commit15e251fdae81c43e78443587f0eb19b0ca158bd3 (patch)
tree8be44b1b045a2fa53adeb5d74edb703351e5ee22
parentdoins: avoid die when called as dodoc with no arg (diff)
downloadportage-15e251fdae81c43e78443587f0eb19b0ca158bd3.zip
portage-15e251fdae81c43e78443587f0eb19b0ca158bd3.tar.gz
portage-15e251fdae81c43e78443587f0eb19b0ca158bd3.tar.bz2
doins: fix dodoc directory error handling
-rwxr-xr-xbin/ebuild-helpers/doins4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild-helpers/doins b/bin/ebuild-helpers/doins
index c549791..0aedcb9 100755
--- a/bin/ebuild-helpers/doins
+++ b/bin/ebuild-helpers/doins
@@ -89,6 +89,10 @@ for x in "$@" ; do
if [[ $PRESERVE_SYMLINKS = n && -d $x ]] || \
[[ $PRESERVE_SYMLINKS = y && -d $x && ! -L $x ]] ; then
if [ "${DOINSRECUR}" == "n" ] ; then
+ if [[ ${0##*/} == dodoc ]] ; then
+ echo "!!! ${0##*/}: $x is a directory" 1>&2
+ ((failed|=1))
+ fi
continue
fi