From e7bc48271f4008a01a97b3ae3d961f8bcba518c8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Dec 2007 12:17:02 +0000 Subject: * Remove redundant lchown() compatibility code since the getattr(os, "lchown", None) call already handles it. * Simplify the userland detection code in portage.data and add a bash version of it to isolated-functions.sh. (trunk r9098:9101) svn path=/main/branches/2.1.2/; revision=9102 --- bin/isolated-functions.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 3290654a6..6feb48dd7 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -375,6 +375,17 @@ case "${NOCOLOR:-false}" in ;; esac +if [[ -z ${USERLAND} ]] ; then + case $(uname -s) in + *BSD|DragonFly) + export USERLAND="BSD" + ;; + *) + export USERLAND="GNU" + ;; + esac +fi + if [[ -z ${XARGS} ]] ; then case ${USERLAND} in BSD|Darwin) -- cgit v1.2.3-1-g7c22