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/misc-functions.sh | |
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/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 79ce43628..7ad7c0d52 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -901,7 +901,8 @@ dyn_package() { echo ${md5_hash} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5 vecho ">>> Done." cd "${PORTAGE_BUILDDIR}" - touch .packaged || die "Failed to 'touch .packaged' in ${PORTAGE_BUILDDIR}" + >> "$PORTAGE_BUILDDIR/.packaged" || \ + die "Failed to create $PORTAGE_BUILDDIR/.packaged" } dyn_spec() { |