diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-19 19:33:26 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-19 19:41:41 -0800 |
commit | 70f53f46aba6e0193f61a6e3bf9dbbaa3b9908e0 (patch) | |
tree | dc2dabe5da499aed51904f572b5e8d0697189c81 /pym | |
parent | 5bc938f581001b7269de7c4dc7293cf84626d66b (diff) | |
download | portage-70f53f46aba6e0193f61a6e3bf9dbbaa3b9908e0.tar.gz portage-70f53f46aba6e0193f61a6e3bf9dbbaa3b9908e0.tar.bz2 portage-70f53f46aba6e0193f61a6e3bf9dbbaa3b9908e0.zip |
Substitute bash builtin >> for touch command.
It should be faster to use the bash builtin, and also allows us to
avoid issues with touch breakage (like in bug #348640).
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/package/ebuild/fetch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/ebuild/fetch.py index f97707fd6..f1bd2408a 100644 --- a/pym/portage/package/ebuild/fetch.py +++ b/pym/portage/package/ebuild/fetch.py @@ -97,7 +97,7 @@ def _spawn_fetch(settings, args, **kwargs): return rval _userpriv_test_write_file_cache = {} -_userpriv_test_write_cmd_script = "touch %(file_path)s 2>/dev/null ; rval=$? ; " + \ +_userpriv_test_write_cmd_script = ">> %(file_path)s 2>/dev/null ; rval=$? ; " + \ "rm -f %(file_path)s ; exit $rval" def _userpriv_test_write_file(settings, file_path): |