diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-22 08:21:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-22 08:21:17 +0000 |
commit | 0797f27834942273f99586db4be298f18edbd034 (patch) | |
tree | 4be9daea8e06166b47ade7fcdb92a16f7f47f173 | |
parent | a6745c3dbbd54a1eb8f613b2b94fe862f72fb55e (diff) | |
download | portage-0797f27834942273f99586db4be298f18edbd034.tar.gz portage-0797f27834942273f99586db4be298f18edbd034.tar.bz2 portage-0797f27834942273f99586db4be298f18edbd034.zip |
Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries
so that packages installed via --buildpkg have a BINPKGMD5
entry matching the package built.
svn path=/main/trunk/; revision=8597
-rwxr-xr-x | bin/misc-functions.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index ec83d80b2..1a6293281 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -527,6 +527,8 @@ dyn_package() { rm -f "${PORTAGE_BINPKG_TMPFILE}" die "Failed to append metadata to the tbz2 file" fi + local md5sum_output=$(md5sum "${PORTAGE_BINPKG_TMPFILE}") + echo ${md5sum_output% *} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5 vecho ">>> Done." cd "${PORTAGE_BUILDDIR}" touch .packaged || die "Failed to 'touch .packaged' in ${PORTAGE_BUILDDIR}" |