From 1632b7d2b123445ff109dfe4dad5b8094c997ed3 Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Thu, 17 Aug 2006 17:09:14 +0000 Subject: [PATCH] - 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 --- pym/portage.py | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.26.2