aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-30 21:49:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-31 16:11:08 +0000
commit1707e92e1b5cc1cc1d9fbf3da3e8ab25ad8fce40 (patch)
tree9b892d3a25d4f564ed93ed1d20bf291ef9138af8
parent66174e086793bc71000103a5aad74ef7e2bcfa81 (diff)
downloadpaludis-1707e92e1b5cc1cc1d9fbf3da3e8ab25ad8fce40.tar.gz
paludis-1707e92e1b5cc1cc1d9fbf3da3e8ab25ad8fce40.tar.xz
Make dohtml show nicer errors
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index ba3cbb8..4576762 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -111,10 +111,15 @@ install_file() {
pfx=${bn}
[[ -n ${prefix} ]] && pfx="${prefix}/${pfx}"
install_file "$(basename "${f}")" "${dn}" "${pfx}"
- (( ret += $? ))
+ (( ret |= $? ))
done
else
- (( ++ret ))
+ if [[ -d "${path}" ]] ; then
+ echo "!!! Directory '${path}' encountered, but -r not specified"
+ else
+ echo "!!! Don't know what to do with '${path}'"
+ fi
+ (( ret |= 1 ))
fi
return ${ret}
}