commit: a32f7ffe03fa30f1965627cb950a3db96e115801
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 17 01:54:27 2017 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 01:57:47 2017 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a32f7ffe
repoman: Add scan module API compatibility version checking
repoman/pym/repoman/modules/scan/module.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/repoman/pym/repoman/modules/scan/module.py
b/repoman/pym/repoman/modules/scan/module.py
index fc0c66ccb..ac9594a86 100644
--- a/repoman/pym/repoman/modules/scan/module.py
+++ b/repoman/pym/repoman/modules/scan/module.py
@@ -16,6 +16,7 @@ MODULES_PATH = os.path.dirname(__file__)
# initial development debug info
logging.debug("module path: %s", MODULES_PATH)
+MODULE_VERSIONS = [1,]
class ModuleConfig(object):
'''Holds the scan modules configuration information and
@@ -29,7 +30,10 @@ class ModuleConfig(object):
self.configpaths = [os.path.join(path, 'repository.yaml') for
path in configpaths]
logging.debug("ModuleConfig; configpaths: %s", self.configpaths)
- self.controller = Modules(path=MODULES_PATH,
namepath="repoman.modules.scan")
+ self.controller = Modules(path=MODULES_PATH,
+
namepath="repoman.modules.scan",
+
compat_versions=MODULE_VERSIONS
+ )
logging.debug("ModuleConfig; module_names: %s",
self.controller.module_names)
self._configs = None