summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-23 01:57:41 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-23 01:57:41 +0000
commit5b96f1094a69d215e56e559cc30f3b3a8d53703d (patch)
tree3b12f48ab612e0271af30f1b5dc18b86f0c1df1e
parentb727aa2ee661446f653e23475eb122f8fe37aa9b (diff)
downloadportage-5b96f1094a69d215e56e559cc30f3b3a8d53703d.tar.gz
portage-5b96f1094a69d215e56e559cc30f3b3a8d53703d.tar.bz2
portage-5b96f1094a69d215e56e559cc30f3b3a8d53703d.zip
Use %% instead of % parameter expansion where appropriate
for md5sum output. (trunk r8613) svn path=/main/branches/2.1.2/; revision=8614
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index c1aded7c2..b0e1a42ed 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -522,7 +522,7 @@ dyn_package() {
mv -f "${pkg_tmp}" "${pkg_dest}" || die "Failed to move tbz2 to ${pkg_dest}"
ln -sf "../All/${PF}.tbz2" "${PKGDIR}/${CATEGORY}/${PF}.tbz2" || die "Failed to create symlink in ${PKGDIR}/${CATEGORY}"
local md5sum_output=$(md5sum "${pkg_dest}")
- echo ${md5sum_output% *} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5
+ echo ${md5sum_output%% *} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5
vecho ">>> Done."
cd "${PORTAGE_BUILDDIR}"
touch .packaged || die "Failed to 'touch .packaged' in ${PORTAGE_BUILDDIR}"