summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2006-08-17 17:09:14 +0000
committerNed Ludd <solar@gentoo.org>2006-08-17 17:09:14 +0000
commit1632b7d2b123445ff109dfe4dad5b8094c997ed3 (patch)
tree9382ac263d1f5354727b3c7f79b48c21f4577b43
parent1d23eea51b5ea45dd7cfe036d9469f7dae844d0a (diff)
downloadportage-1632b7d2b123445ff109dfe4dad5b8094c997ed3.tar.gz
portage-1632b7d2b123445ff109dfe4dad5b8094c997ed3.tar.bz2
portage-1632b7d2b123445ff109dfe4dad5b8094c997ed3.zip
- 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
-rw-r--r--pym/portage.py5
1 files changed, 5 insertions, 0 deletions
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.