aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-04-30 18:30:29 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-04-30 18:30:29 +0200
commit15c7e8bd8c6ee7f57d18de6fb8f931059200dd4c (patch)
treef3c999452a4d0da7583932e63b7ffc8b16c3765c /bin
parentCheck for references to ${ROOT} in install_qa_checks. (diff)
downloadportage-15c7e8bd8c6ee7f57d18de6fb8f931059200dd4c.tar.gz
portage-15c7e8bd8c6ee7f57d18de6fb8f931059200dd4c.tar.bz2
portage-15c7e8bd8c6ee7f57d18de6fb8f931059200dd4c.zip
install_qa_check(): Simplify code and make 'l' a local variable.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/misc-functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index c3109981d..b28b73fff 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -193,10 +193,10 @@ install_qa_check() {
# 3) Null paths are banned because the loader will search $PWD when
# it finds null paths.
local forbidden_dirs="${PORTAGE_BUILDDIR}"
- if [[ -n "$ROOT" ]] && [[ "$ROOT" != "/" ]]; then
- forbidden_dirs="${forbidden_dirs} ${ROOT}"
+ if [[ -n "${ROOT}" && "${ROOT}" != "/" ]]; then
+ forbidden_dirs+=" ${ROOT}"
fi
- local dir="" rpath_files=$(scanelf -F '%F:%r' -qBR "${D}")
+ local dir l rpath_files=$(scanelf -F '%F:%r' -qBR "${D}")
f=""
for dir in ${forbidden_dirs}; do
for l in $(echo "${rpath_files}" | grep -E ":${dir}|::|: "); do