(trunk r9095:9097)
svn path=/main/branches/2.1.2/; revision=9098
;;
esac
+if [[ -z ${XARGS} ]] ; then
+ case ${USERLAND} in
+ BSD|Darwin)
+ export XARGS="xargs"
+ ;;
+ *)
+ export XARGS="xargs -r"
+ ;;
+ esac
+fi
+
has() {
hasq "$@"
}
if env_stat:
mysettings._filter_calling_env = True
else:
- for var in "ARCH", "USERLAND", "XARGS":
+ for var in "ARCH", "USERLAND":
value = mysettings.get(var)
if value and value.strip():
continue
ostype.lower().startswith("gnu") or \
ostype.lower().endswith("gnu"):
userland="GNU"
- os.environ["XARGS"]="xargs -r"
elif ostype == "Darwin":
userland="Darwin"
- os.environ["XARGS"]="xargs"
def lchown(*pos_args, **key_args):
pass
elif ostype.endswith("BSD") or ostype =="DragonFly":
userland="BSD"
- os.environ["XARGS"]="xargs"
if not lchown:
if "lchown" in dir(os):