diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-08-10 11:07:05 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-08-10 11:07:05 +0000 |
commit | 6c4d87c67cb6c745af4a94c4067e6fb604d77433 (patch) | |
tree | 89591e334889e3f0af9493a753c3417795dccf32 | |
parent | 12f920d9bd1d642e7739a6725c4b168ae000fd56 (diff) | |
download | portage-6c4d87c67cb6c745af4a94c4067e6fb604d77433.tar.gz portage-6c4d87c67cb6c745af4a94c4067e6fb604d77433.tar.bz2 portage-6c4d87c67cb6c745af4a94c4067e6fb604d77433.zip |
When testing userpriv write access in $DISTDIR, redirect the 'permission
denied' error message to /dev/null.
svn path=/main/trunk/; revision=11393
-rw-r--r-- | pym/portage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 72deec23c..e06dd8dad 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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): |