When testing userpriv write access in $DISTDIR, redirect the 'permission
denied' error message to /dev/null.
svn path=/main/trunk/; revision=11393
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 72deec2..e06dd8d 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3201,7 +3201,7 @@
return rval
_userpriv_test_write_file_cache = {}
-_userpriv_test_write_cmd_script = "> %(file_path)s ; rval=$? ; " + \
+_userpriv_test_write_cmd_script = "touch %(file_path)s 2>/dev/null ; rval=$? ; " + \
"rm -f %(file_path)s ; exit $rval"
def _userpriv_test_write_file(settings, file_path):