diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-29 11:38:48 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-29 11:38:48 +0000 |
commit | c3a6e5fa897533274077b7573a6d2a302011be68 (patch) | |
tree | f5eb3d56f2aa7d2ce8d09b148037369b9eb221c5 /bin | |
parent | 5a32694693f0da2bb7bb78744355650c64800104 (diff) | |
download | portage-c3a6e5fa897533274077b7573a6d2a302011be68.tar.gz portage-c3a6e5fa897533274077b7573a6d2a302011be68.tar.bz2 portage-c3a6e5fa897533274077b7573a6d2a302011be68.zip |
Move XARGS initialization from portage.data to isolated-functions.sh.
(trunk r9095:9097)
svn path=/main/branches/2.1.2/; revision=9098
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 e06fbb826..3290654a6 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -375,6 +375,17 @@ case "${NOCOLOR:-false}" in ;; esac +if [[ -z ${XARGS} ]] ; then + case ${USERLAND} in + BSD|Darwin) + export XARGS="xargs" + ;; + *) + export XARGS="xargs -r" + ;; + esac +fi + has() { hasq "$@" } |