aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils/dosbin
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/dosbin')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dosbin10
1 files changed, 6 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dosbin b/paludis/repositories/e/ebuild/utils/dosbin
index 218baa4..c72d9c5 100755
--- a/paludis/repositories/e/ebuild/utils/dosbin
+++ b/paludis/repositories/e/ebuild/utils/dosbin
@@ -35,11 +35,13 @@ if [[ ! -d "${D}${DESTTREE}/sbin" ]]; then
install -d "${D}${DESTTREE}/sbin" || exit 3
fi
+ret=0
for x in "$@"; do
- if [[ -x ${x} ]]; then
- install -m0755 "${x}" "${D}${DESTTREE}/sbin" || exit 2
+ if [[ -n ${PALUDIS_NO_CHOWN} ]]; then
+ install -m0755 "${x}" "${D}${DESTTREE}/sbin" || ret=2
else
- echo ">>> dosbin: making ${x} executable..."
- install -m0755 -o root -g 0 "${x}" "${D}${DESTTREE}/sbin" || exit 2
+ install -m0755 -o root -g 0 "${x}" "${D}${DESTTREE}/sbin" || ret=2
fi
done
+
+exit ${ret}