summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-19 19:33:26 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-19 19:33:26 -0800
commit24e928472a1e9def98378c1ad3c06b9232b599cd (patch)
tree6746a123d2538643041822e127bb34c35f930fcf /bin/misc-functions.sh
parent2c1083a543ed842c310d7be9ed6888d7eaf7213f (diff)
downloadportage-24e928472a1e9def98378c1ad3c06b9232b599cd.tar.gz
portage-24e928472a1e9def98378c1ad3c06b9232b599cd.tar.bz2
portage-24e928472a1e9def98378c1ad3c06b9232b599cd.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-xbin/misc-functions.sh3
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() {