- record the md5 checksum of the .tbz2 used at merge time. This will become useful...
authorNed Ludd <solar@gentoo.org>
Thu, 17 Aug 2006 17:09:14 +0000 (17:09 -0000)
committerNed Ludd <solar@gentoo.org>
Thu, 17 Aug 2006 17:09:14 +0000 (17:09 -0000)
svn path=/main/trunk/; revision=4283

pym/portage.py

index 64ea13ccb08d610d9c7edf0780d48c97aab0a4ce..15bf668202d757d33b888ab4049adb1f270a3df9 100644 (file)
@@ -6514,6 +6514,11 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None, vartree=None, prev_mtimes
        origdir=getcwd()
        os.chdir(pkgloc)
 
+       # Save the md5sum for later.
+       fp = open(os.path.join(infloc, "BINPKGMD5"), "w")
+       fp.write(str(portage_checksum.perform_md5(mytbz2))+"\n")
+       fp.close()
+
        mysettings.configdict["pkg"]["CATEGORY"] = mycat;
        # Eventually we'd like to pass in the saved ebuild env here.
        # Do cleanup=1 to ensure that there is no cruft prior to the setup phase.