From 764667c9e3546687a1e11a841bc535d437d30f99 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Apr 2006 13:50:12 +0000 Subject: [PATCH] Make FEATURES=cvs cause all distfiles to be fetched if necessary (just like `ebuild digest`) and update the code for Manifest2. svn path=/main/trunk/; revision=3251 --- pym/portage.py | 23 +++++++++++------------ 1 file 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[:] -- 2.26.2