From: Ned Ludd Date: Thu, 17 Aug 2006 17:09:14 +0000 (-0000) Subject: - record the md5 checksum of the .tbz2 used at merge time. This will become useful... X-Git-Tag: v2.1.1~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1632b7d2b123445ff109dfe4dad5b8094c997ed3;p=portage.git - record the md5 checksum of the .tbz2 used at merge time. This will become useful to know if we should refetch a .tbz2 from a remote repo svn path=/main/trunk/; revision=4283 --- diff --git a/pym/portage.py b/pym/portage.py index 64ea13ccb..15bf66820 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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.