commit:     db30bb430e5a022f6e358f32dbccba243637bf49
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 17:21:09 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 20:31:49 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=db30bb43

doebuild: abort for missing DIST digests

Fix the ebuild(1) command to abort when DIST digests are missing,
so behavior is consistent with emerge. Do not abort when generating
a manifest (including when "digest" is in FEATURES), or when the
ebuild --skip-manifest option is used (these cases are handled
outside of the doebuild function).

Acked-by: Brian Dolbec <dolsen <AT> gentoo.org>

 pym/portage/package/ebuild/doebuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/package/ebuild/doebuild.py 
b/pym/portage/package/ebuild/doebuild.py
index a4d4d9f..d926e03 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -1033,7 +1033,7 @@ def doebuild(myebuild, mydo, _unused=DeprecationWarning, 
settings=None, debug=0,
                        if mf is not None:
                                dist_digests = mf.getTypeDigests("DIST")
                        if not fetch(fetchme, mysettings, listonly=listonly,
-                               fetchonly=fetchonly, allow_missing_digests=True,
+                               fetchonly=fetchonly, 
allow_missing_digests=False,
                                digests=dist_digests):
                                spawn_nofetch(mydbapi, myebuild, 
settings=mysettings,
                                        fd_pipes=fd_pipes)

Reply via email to