aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-31 00:30:51 -0700
committerZac Medico <zmedico@gentoo.org>2021-03-31 00:33:50 -0700
commitd04486767159f9dba443e7a9d1a6c3854db00400 (patch)
tree031ebaddef5b20c6a8f5f8b692fefdab5508e720
parentrepoman/lib/repoman/argparser.py: W0611: Unused import sys (unused-import) (diff)
downloadportage-d04486767159f9dba443e7a9d1a6c3854db00400.tar.gz
portage-d04486767159f9dba443e7a9d1a6c3854db00400.tar.bz2
portage-d04486767159f9dba443e7a9d1a6c3854db00400.zip
repoman: fix ModuleConfig _not_installed path (bug 779055)
Bug: https://bugs.gentoo.org/779055 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--repoman/lib/repoman/modules/scan/module.py4
1 files 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')]