From b6062584a56306404517942c55087711983034f1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 9 Apr 2006 04:50:41 +0000 Subject: Move mf.create out of a loop because it should only need to be called once. svn path=/main/trunk/; revision=3104 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- cgit v1.2.3-1-g7c22