Re: [gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize

2018-04-24 Thread Ulrich Mueller
> On Tue, 24 Apr 2018, Marty E Plummer wrote: > Reworked to be usable with app-dicts/dictd-* ebuilds to avoid code > duplication I don't see much code duplication there, so I think it would be cleaner to have a second eclass, rather than adding conditionals to the existing one. > You can

Re: [gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize

2018-04-24 Thread Marty E. Plummer
On Tue, Apr 24, 2018 at 11:03:44PM -0500, Marty E. Plummer wrote: > Reworked to be usable with app-dicts/dictd-* ebuilds to avoid code > duplication > > You can reference this pull request to get an idea as to the usage. > > https://github.com/gentoo/gentoo/pull/8106 > > Package-Manager:

[gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize

2018-04-24 Thread Marty E. Plummer
Reworked to be usable with app-dicts/dictd-* ebuilds to avoid code duplication You can reference this pull request to get an idea as to the usage. https://github.com/gentoo/gentoo/pull/8106 Package-Manager: Portage-2.3.31, Repoman-2.3.9 --- eclass/dict.eclass | 75

[gentoo-portage-dev] [PATCH 1/2] Add iter_gather function (bug 653946)

2018-04-24 Thread Zac Medico
This is similar to asyncio.gather, but takes an iterator of futures as input, and includes support for max_jobs and max_load parameters. For bug 653946, this will be used to asynchronously gather the results of the portdbapi.async_fetch_map calls that are required to generate a Manifest, while

[gentoo-portage-dev] [PATCH 0/2] ManifestScheduler: async fetchlist_dict (bug 653946)

2018-04-24 Thread Zac Medico
In order to avoid event loop recursion, pass fetchlist_dict to ManifestTask as a Future. Zac Medico (2): Add iter_gather function (bug 653946) ManifestScheduler: async fetchlist_dict (bug 653946) .../ebuild/_parallel_manifest/ManifestScheduler.py | 82 ++

[gentoo-portage-dev] [PATCH v2] ManifestScheduler: async fetchlist_dict (bug 653946)

2018-04-24 Thread Zac Medico
In order to avoid event loop recursion, pass fetchlist_dict to ManifestTask as a Future. Bug: https://bugs.gentoo.org/653946 --- [PATCH v2] fixed _future_fetchlist to limit concurrent async_aux_get calls with async_iter_completed(max_jobs=1)

[gentoo-portage-dev] [PATCH] ManifestScheduler: async fetchlist_dict (bug 653946)

2018-04-24 Thread Zac Medico
In order to avoid event loop recursion, pass fetchlist_dict to ManifestTask as a Future. Bug: https://bugs.gentoo.org/653946 --- .../ebuild/_parallel_manifest/ManifestScheduler.py | 70 +- .../ebuild/_parallel_manifest/ManifestTask.py | 22 +++