On Mon,  9 Mar 2015 12:32:02 -0700
Zac Medico <[email protected]> wrote:

> Since commit c3586c5e15c8373d08f9192713a2b03d4542faaf, the
> WorldSelectedSet load method does not force the set to load if it has
> already been loaded. Fix it to do so.
> 
> Fixes: c3586c5e15c8 ("WorldSelectedSet: fix breakage for bug #539746")
> X-Gentoo-Bug: 542732
> X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=542732
> ---
>  pym/portage/_sets/files.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/pym/portage/_sets/files.py b/pym/portage/_sets/files.py
> index 26ee094..e045701 100644
> --- a/pym/portage/_sets/files.py
> +++ b/pym/portage/_sets/files.py
> @@ -221,7 +221,10 @@ class WorldSelectedSet(EditablePackageSet):
>               self._setset.write()
>  
>       def load(self):
> -             # Iterating over these sets loads them automatically.
> +             # Iterating over these sets does not force them to
> load if they
> +             # have been loaded previously.
> +             self._pkgset.load()
> +             self._setset.load()
>               self._setAtoms(chain(self._pkgset, self._setset))
>  
>       def lock(self):


LGTM, don't know if it fixes it, but you are the expert there ;)
-- 
Brian Dolbec <dolsen>


Reply via email to