diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-29 12:17:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-29 12:17:02 +0000 |
commit | e7bc48271f4008a01a97b3ae3d961f8bcba518c8 (patch) | |
tree | d22df936a3b6b1d55e8de0a2d7f80cb8c18f1dfe /bin | |
parent | c3a6e5fa897533274077b7573a6d2a302011be68 (diff) | |
download | portage-e7bc48271f4008a01a97b3ae3d961f8bcba518c8.tar.gz portage-e7bc48271f4008a01a97b3ae3d961f8bcba518c8.tar.bz2 portage-e7bc48271f4008a01a97b3ae3d961f8bcba518c8.zip |
* 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
Diffstat (limited to 'bin')
-rw-r--r-- | bin/isolated-functions.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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) |