commit:     d04486767159f9dba443e7a9d1a6c3854db00400
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 31 07:30:51 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 07:33:50 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=d0448676

repoman: fix ModuleConfig _not_installed path (bug 779055)

Bug: https://bugs.gentoo.org/779055
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 repoman/lib/repoman/modules/scan/module.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/repoman/lib/repoman/modules/scan/module.py 
b/repoman/lib/repoman/modules/scan/module.py
index 3321cb224..41c1becfc 100644
--- a/repoman/lib/repoman/modules/scan/module.py
+++ b/repoman/lib/repoman/modules/scan/module.py
@@ -31,9 +31,9 @@ class ModuleConfig:
                if repository_modules:
                        self.configpaths = [os.path.join(path, 
'repository.yaml') for path in configpaths]
                elif _not_installed:
-                       self.configpaths = 
[os.path.realpath(os.path.join(os.path.dirname(
+                       self.configpaths = [os.path.realpath(os.path.join(
                                
os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
-                               os.path.dirname(__file__)))))), 
'repoman/cnf/repository/repository.yaml'))]
+                               os.path.dirname(__file__))))), 
'cnf/repository/repository.yaml'))]
                else:
                        self.configpaths = [os.path.join(portage.const.EPREFIX 
or '/',
                                'usr/share/repoman/repository/repository.yaml')]

Reply via email to