summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 05:36:33 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 05:36:33 +0000
commitca33bea20805c7b6a136d84a8a556f029ba51556 (patch)
tree1c2cc6f912ea09271393bb38f2f3f78d84f963c7 /bin
parent8ea55187dfb8c827555e65255f712a387d504751 (diff)
downloadportage-ca33bea20805c7b6a136d84a8a556f029ba51556.tar.gz
portage-ca33bea20805c7b6a136d84a8a556f029ba51556.tar.bz2
portage-ca33bea20805c7b6a136d84a8a556f029ba51556.zip
change "EXEDESTTREE" to "_E_EXEDESTTREE_" to try and prevent abuse from ebuild writers (trunk r6351)
svn path=/main/branches/2.1.2/; revision=6903
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dobin6
-rwxr-xr-xbin/doexe8
-rwxr-xr-xbin/doinitd4
-rwxr-xr-xbin/ebuild.sh13
4 files changed, 16 insertions, 15 deletions
diff --git a/bin/dobin b/bin/dobin
index f24e34167..45cc61d7e 100755
--- a/bin/dobin
+++ b/bin/dobin
@@ -3,8 +3,10 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
+
if [[ $# -lt 1 ]] ; then
- echo "$0: at least one argument needed" 1>&2
+ vecho "$0: at least one argument needed" 1>&2
exit 1
fi
@@ -18,7 +20,7 @@ for x in "$@" ; do
if [[ -e ${x} ]] ; then
install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${D}${DESTTREE}/bin"
else
- echo "!!! ${0##*/}: ${x} does not exist" 1>&2
+ vecho "!!! ${0##*/}: ${x} does not exist" 1>&2
false
fi
((ret+=$?))
diff --git a/bin/doexe b/bin/doexe
index e4e6fdc65..012e32034 100755
--- a/bin/doexe
+++ b/bin/doexe
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -10,8 +10,8 @@ if [[ $# -lt 1 ]] ; then
exit 1
fi
-if [[ ! -d ${D}${EXEDESTTREE} ]] ; then
- install -d "${D}${EXEDESTTREE}"
+if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
+ install -d "${D}${_E_EXEDESTTREE_}"
fi
for x in "$@" ; do
@@ -24,5 +24,5 @@ for x in "$@" ; do
else
mysrc="${x}"
fi
- install ${EXEOPTIONS} "${mysrc}" "${D}${EXEDESTTREE}"
+ install ${EXEOPTIONS} "${mysrc}" "${D}${_E_EXEDESTTREE_}"
done
diff --git a/bin/doinitd b/bin/doinitd
index e8d9f69fa..0f1af9406 100755
--- a/bin/doinitd
+++ b/bin/doinitd
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -10,5 +10,5 @@ fi
exec \
env \
-EXEDESTTREE="/etc/init.d/" \
+_E_EXEDESTTREE_="/etc/init.d/" \
doexe "$@"
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index a7d5fd871..30b929957 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -353,7 +353,7 @@ dump_trace() {
umask 022
export DESTTREE=/usr
export INSDESTTREE=""
-export EXEDESTTREE=""
+export _E_EXEDESTTREE_=""
export _E_DOCDESTTREE_=""
export INSOPTIONS="-m0644"
export EXEOPTIONS="-m0755"
@@ -837,11 +837,11 @@ insinto() {
exeinto() {
if [ "$1" == "/" ]; then
- export EXEDESTTREE=""
+ export _E_EXEDESTTREE_=""
else
- export EXEDESTTREE="$1"
- if [ ! -d "${D}${EXEDESTTREE}" ]; then
- install -d "${D}${EXEDESTTREE}"
+ export _E_EXEDESTTREE_="$1"
+ if [ ! -d "${D}${_E_EXEDESTTREE_}" ]; then
+ install -d "${D}${_E_EXEDESTTREE_}"
fi
fi
}
@@ -849,7 +849,6 @@ exeinto() {
docinto() {
if [ "$1" == "/" ]; then
export _E_DOCDESTTREE_=""
- eqawarn "QA Notice: invalid usage of docinto"
else
export _E_DOCDESTTREE_="$1"
if [ ! -d "${D}usr/share/doc/${PF}/${_E_DOCDESTTREE_}" ]; then