Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests
Date: Tue, 23 Feb 2016 17:43:20
Message-Id: 1456249371-8434-1-git-send-email-zmedico@gentoo.org
1 Fix the ebuild(1) command to abort when DIST digests are missing,
2 so behavior is consistent with emerge. Do not abort when generating
3 a manifest (including when "digest" is in FEATURES), or when the
4 ebuild --skip-manifest option is used (these cases are handled
5 outside of the doebuild function).
6 ---
7 pym/portage/package/ebuild/doebuild.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
11 index a4d4d9f..d926e03 100644
12 --- a/pym/portage/package/ebuild/doebuild.py
13 +++ b/pym/portage/package/ebuild/doebuild.py
14 @@ -1033,7 +1033,7 @@ def doebuild(myebuild, mydo, _unused=DeprecationWarning, settings=None, debug=0,
15 if mf is not None:
16 dist_digests = mf.getTypeDigests("DIST")
17 if not fetch(fetchme, mysettings, listonly=listonly,
18 - fetchonly=fetchonly, allow_missing_digests=True,
19 + fetchonly=fetchonly, allow_missing_digests=False,
20 digests=dist_digests):
21 spawn_nofetch(mydbapi, myebuild, settings=mysettings,
22 fd_pipes=fd_pipes)
23 --
24 2.4.10

Replies