Make sure XARGS has a default value.
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2007 21:34:46 +0000 (21:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2007 21:34:46 +0000 (21:34 -0000)
svn path=/main/trunk/; revision=6343

pym/portage/data.py

index 1ef417fc54ce15b954b204fdfbf6de32a6c79abb..69763aedda276c73fc359168fcb8869320ceb1db 100644 (file)
@@ -16,6 +16,7 @@ ostype=os.uname()[0]
 
 userland = None
 lchown = getattr(os, "lchown")
+os.environ.setdefault("XARGS", "xargs")
 if ostype=="Linux" or ostype.lower().endswith("gnu"):
        userland="GNU"
        os.environ["XARGS"]="xargs -r"