[gentoo-portage-dev] [PATCH] config: cache profile.bashrc stat results (bug 649806)

2018-07-14 Thread Zac Medico
Optimize config to stat profile.bashrc files once in the constructor, in order to avoid repeated stat calls in the setcpv method. Bug: https://bugs.gentoo.org/649806 --- pym/portage/package/ebuild/config.py | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

Re: [gentoo-portage-dev] [PATCH] portdbapi.cp_list: cache repo associations (bug 650814)

2018-07-14 Thread Brian Dolbec
On Sat, 14 Jul 2018 21:05:39 -0700 Zac Medico wrote: > Make portdbapi.cp_list return _pkg_str instances that have a 'repo' > attribute (bindbapi.cp_list already does this), with results > in ascending order by (pkg.version, repo.priority). Optimize > portdbapi.findname2 to use the 'repo'

[gentoo-portage-dev] [PATCH] portdbapi.cp_list: cache repo associations (bug 650814)

2018-07-14 Thread Zac Medico
Make portdbapi.cp_list return _pkg_str instances that have a 'repo' attribute (bindbapi.cp_list already does this), with results in ascending order by (pkg.version, repo.priority). Optimize portdbapi.findname2 to use the 'repo' attribute to enable cached results for files previously found by the

Re: [gentoo-portage-dev] [PATCH] _unmerge_dirs: revisit parents of removed symlinks (bug 640058)

2018-07-14 Thread Zac Medico
On 07/14/2018 08:31 AM, Brian Dolbec wrote: > On Thu, 12 Jul 2018 21:09:46 -0700 > Zac Medico wrote: > >> When removal of a symlink is triggered by removal of the directory >> that it points to, revisit the parent directories of the symlink. >> >> Bug: https://bugs.gentoo.org/640058 >> --- >>

Re: [gentoo-portage-dev] [PATCH] dbapi: fix repoman implicit IUSE (bug 660982)

2018-07-14 Thread Zac Medico
On 07/12/2018 06:36 AM, Brian Dolbec wrote: > On Thu, 12 Jul 2018 02:59:03 -0700 > Zac Medico wrote: > >> Account for repoman modifications of the portdbapi self.settings >> reference, and treat all flags as valid for the empty profile >> because it does not have any implicit IUSE settings. >>

Re: [gentoo-portage-dev] [PATCH] _unmerge_dirs: revisit parents of removed symlinks (bug 640058)

2018-07-14 Thread Brian Dolbec
On Thu, 12 Jul 2018 21:09:46 -0700 Zac Medico wrote: > When removal of a symlink is triggered by removal of the directory > that it points to, revisit the parent directories of the symlink. > > Bug: https://bugs.gentoo.org/640058 > --- > pym/portage/dbapi/vartree.py | 23

Re: [gentoo-portage-dev] [PATCH v2] repoman: Warn on = dependencies without * or revision

2018-07-14 Thread Zac Medico
On 07/14/2018 12:08 AM, Michał Górny wrote: > Warn if the '=' package dependency operator is used along with pure > version with no revision specified. This means to catch a common mistake > of developers copying '=' from upstream dependency specification while > '~' operator would be more

[gentoo-portage-dev] [PATCH v2] repoman: Warn on = dependencies without * or revision

2018-07-14 Thread Michał Górny
Warn if the '=' package dependency operator is used along with pure version with no revision specified. This means to catch a common mistake of developers copying '=' from upstream dependency specification while '~' operator would be more appropriate. This causes unintended depgraph breakage when