commit:     0bdfd62184d3224c23f5293683ba6fb5c0769e6a
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  9 19:31:21 2015 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Mar  9 19:51:46 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0bdfd621

WorldSelectedSet: fix load method for bug 542732

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
Acked-by: Brian Dolbec <dolsen <AT> gentoo.org>

 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):


Reply via email to