Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Nov 2007 08:24:42 +0000 (08:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Nov 2007 08:24:42 +0000 (08:24 -0000)
so that packages installed via --buildpkg have a BINPKGMD5
entry matching the package built. (trunk r8597)

svn path=/main/branches/2.1.2/; revision=8598

bin/misc-functions.sh

index 3ce8c92116867004f4ab342c03f3005aabc99be5..c1aded7c287323991c6883473381ab0e579e068a 100755 (executable)
@@ -521,6 +521,8 @@ dyn_package() {
        fi
        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
        vecho ">>> Done."
        cd "${PORTAGE_BUILDDIR}"
        touch .packaged || die "Failed to 'touch .packaged' in ${PORTAGE_BUILDDIR}"