From 5ede1faa5858d7314c8b814fb91c2dadf95d667b Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 30 Jan 2007 20:54:48 +0000 Subject: [PATCH] In prefix we _always_ have GNU xargs, so we can *always* use -r (which is short for --no-run-if-empty) svn path=/main/branches/prefix/; revision=5839 --- pym/portage/data.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pym/portage/data.py b/pym/portage/data.py index 21d156538..32ac72411 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -16,24 +16,20 @@ bad = create_color_func("BAD") ostype=os.uname()[0] lchown = None +os.environ["XARGS"]="xargs -r" if ostype=="Linux" 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 == "SunOS": userland="Solaris" - os.environ["XARGS"]="xargs" elif ostype.endswith("BSD") or ostype =="DragonFly": userland="BSD" - os.environ["XARGS"]="xargs" elif ostype in ["BeOS","Haiku","HP-UX"]: userland="GNU" - os.environ["XARGS"]="xargs" else: writemsg(red("Operating system")+" \""+ostype+"\" "+red("currently unsupported. Exiting.")+"\n") sys.exit(1) -- 2.26.2