summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-09 04:50:41 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-09 04:50:41 +0000
commitb6062584a56306404517942c55087711983034f1 (patch)
tree6c9d666a82d2e1e4d9c268212ec711f9c80aafc5
parent792e2ed8e0991bb5e850ba379708499415b0a31a (diff)
downloadportage-b6062584a56306404517942c55087711983034f1.tar.gz
portage-b6062584a56306404517942c55087711983034f1.tar.bz2
portage-b6062584a56306404517942c55087711983034f1.zip
Move mf.create out of a loop because it should only need to be called once.
svn path=/main/trunk/; revision=3104
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 00d87dbd6..dc8f2c0b7 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2073,6 +2073,7 @@ def digestgen(myarchives,mysettings,db=None,overwrite=1,manifestonly=0):
db = portagetree().dbapi
mf = Manifest(mysettings["O"], db, mysettings)
+ mf.create(assumeDistfileHashes=True)
for f in myarchives:
# the whole type evaluation is only for the case that myarchives isn't a
# DIST file as create() determines the type on its own
@@ -2085,7 +2086,6 @@ def digestgen(myarchives,mysettings,db=None,overwrite=1,manifestonly=0):
if myrealtype != None:
mytype = myrealtype
writemsg(">>> Creating Manifest for %s\n" % mysettings["O"])
- mf.create(assumeDistfileHashes=True)
try:
writemsg(">>> Adding digests for file %s\n" % f)
mf.updateFileHashes(mytype, f, checkExisting=False, reuseExisting=not os.path.exists(os.path.join(mysettings["DISTDIR"], f)))