diff options
-rw-r--r-- | pym/portage.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/pym/portage.py b/pym/portage.py index 0a2ddaf5c..67615a5d9 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2684,18 +2684,17 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, if ("mirror" in features) or fetchall: fetchme=alluris[:] checkme=aalist[:] - elif mydo=="digest": - fetchme=alluris[:] - checkme=aalist[:] - digestfn=mysettings["FILESDIR"]+"/digest-"+mysettings["PF"] - if os.path.exists(digestfn): - mydigests=digestParseFile(digestfn) - if mydigests: - for x in mydigests: - while x in checkme: - i = checkme.index(x) - del fetchme[i] - del checkme[i] + elif mydo == "digest" or "cvs" in mysettings.features: + fetchme = alluris[:] + checkme = aalist[:] + # Skip files that we already have digests for. + mydigests = Manifest( + mysettings["O"], mysettings["DISTDIR"]).getTypeDigests("DIST") + for x in mydigests: + while x in checkme: + i = checkme.index(x) + del fetchme[i] + del checkme[i] else: fetchme=newuris[:] checkme=alist[:] |