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 /bin/ebuild-helpers/ecompress | |
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 'bin/ebuild-helpers/ecompress')
-rwxr-xr-x | bin/ebuild-helpers/ecompress | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/ecompress b/bin/ebuild-helpers/ecompress index ed19ffb1b..de81b4484 100755 --- a/bin/ebuild-helpers/ecompress +++ b/bin/ebuild-helpers/ecompress @@ -95,8 +95,11 @@ case $1 in ;; --queue) shift - touch "${@/%/.ecompress.file}" - ret=$? + ret=0 + for x in "${@/%/.ecompress.file}" ; do + >> "$x" + ((ret|=$?)) + done [[ $ret -ne 0 ]] && helpers_die "${0##*/} failed" exit $ret ;; |