summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-29 11:30:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-29 11:30:30 +0000
commit0c193126a01dd39e1806fe5cc376e75857d2f22e (patch)
tree0e513824259c9f0e1ccef2cc4db1e88d8d6d8053 /bin/isolated-functions.sh
parentAdd support for showing binary package file sizes in emerge (diff)
downloadportage-multirepo-0c193126a01dd39e1806fe5cc376e75857d2f22e.tar.gz
portage-multirepo-0c193126a01dd39e1806fe5cc376e75857d2f22e.tar.bz2
portage-multirepo-0c193126a01dd39e1806fe5cc376e75857d2f22e.zip
Move XARGS initialization from portage.data to isolated-functions.sh.
svn path=/main/trunk/; revision=9096
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index e06fbb82..3290654a 100755
--- 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 "$@"
}