From: Zac Medico Date: Thu, 22 Nov 2007 08:21:17 +0000 (-0000) Subject: Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries X-Git-Tag: v2.2_pre1~351 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0797f27834942273f99586db4be298f18edbd034;p=portage.git 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 --- 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}"