When testing userpriv write access in $DISTDIR, redirect the 'permission
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Aug 2008 11:07:05 +0000 (11:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Aug 2008 11:07:05 +0000 (11:07 -0000)
denied' error message to /dev/null.

svn path=/main/trunk/; revision=11393

pym/portage/__init__.py

index 72deec23c3c421456c9b16f5edf1c119d996df25..e06dd8dad46364a1faa577a2e90b7997bd1849cd 100644 (file)
@@ -3201,7 +3201,7 @@ def _spawn_fetch(settings, args, **kwargs):
        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):