* [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests
@ 2016-02-23 17:42 Zac Medico
2016-02-23 18:14 ` Brian Dolbec
0 siblings, 1 reply; 2+ messages in thread
From: Zac Medico @ 2016-02-23 17:42 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
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).
---
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)
--
2.4.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests
2016-02-23 17:42 [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests Zac Medico
@ 2016-02-23 18:14 ` Brian Dolbec
0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec @ 2016-02-23 18:14 UTC (permalink / raw
To: gentoo-portage-dev
On Tue, 23 Feb 2016 09:42:51 -0800
Zac Medico <zmedico@gentoo.org> wrote:
> 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).
> ---
> 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)
Makes sense to be consistent to me :)
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-23 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 17:42 [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests Zac Medico
2016-02-23 18:14 ` Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox