aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils/dobin
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/dobin')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dobin5
1 files changed, 2 insertions, 3 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dobin b/paludis/repositories/e/ebuild/utils/dobin
index 8c62f2b..c7901b5 100755
--- a/paludis/repositories/e/ebuild/utils/dobin
+++ b/paludis/repositories/e/ebuild/utils/dobin
@@ -37,10 +37,9 @@ fi
ret=0
for x in "$@" ; do
- if [[ -x "${x}" ]]; then
- install "${x}" "${D}${DESTTREE}/bin" || ret=2
+ if [[ -n ${PALUDIS_NO_CHOWN} ]]; then
+ install -m0755 "${x}" "${D}${DESTTREE}/bin" || ret=2
else
- echo ">>> ${0}: making ${x} executable..."
install -m0755 -o root -g 0 "${x}" "${D}${DESTTREE}/bin" || ret=2
fi
done