commit:     8d941d9c0e77eaab787df5f19ab97ca8a2fd6cff
Author:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 24 15:05:35 2019 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Thu Oct 24 15:05:56 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=8d941d9c

ekeyword: fix for when main-repo != "gentoo"

Closes: https://bugs.gentoo.org/698256
Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org>

 pym/gentoolkit/ekeyword/ekeyword.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pym/gentoolkit/ekeyword/ekeyword.py 
b/pym/gentoolkit/ekeyword/ekeyword.py
index 94c5885..cf2a15e 100755
--- a/pym/gentoolkit/ekeyword/ekeyword.py
+++ b/pym/gentoolkit/ekeyword/ekeyword.py
@@ -346,7 +346,7 @@ def portage_settings():
        return portage.db[portage.root]['vartree'].settings
 
 
-def load_profile_data(portdir=None, repo='gentoo'):
+def load_profile_data(portdir=None, repo=None):
        """Load the list of known arches from the tree
 
        Args:
@@ -357,6 +357,8 @@ def load_profile_data(portdir=None, repo='gentoo'):
          A dict mapping the keyword to its preferred state:
          {'x86': 'stable', 'mips': 'dev', ...}
        """
+       if repo is None:
+               repo = portage_settings().repositories.mainRepo().name
        if portdir is None:
                portdir = portage_settings().repositories[repo].location
 
@@ -444,7 +446,7 @@ def ignorable_arg(arg, quiet=0):
        return False
 
 
-def args_to_work(args, arch_status=None, _repo='gentoo', quiet=0):
+def args_to_work(args, arch_status=None, _repo=None, quiet=0):
        """Process |args| into a list of work itmes (ebuild/arches to update)"""
        work = []
        todo_arches = []

Reply via email to