Automated PaŃkage versions update for tags
Module repos.py
- ReposInfo(), walks mirror using HTTP and builds
all repos map available
- RepoManager(), using repos map builds package versions map
either for specific tags or for all of them
Fixes:
- Progress class clears line remainder on change
Utils:
- Download GZ file into memory
- TGZ file interface, CRU (no deletion)
Change-Id: Ifdb37aa4b68fb25f642b2089cf16cd242ed25a0b
Related-PROD: PROD-28199
diff --git a/cfg_checker/modules/packages/versions.py b/cfg_checker/modules/packages/versions.py
index 9737d80..a2bd083 100644
--- a/cfg_checker/modules/packages/versions.py
+++ b/cfg_checker/modules/packages/versions.py
@@ -19,7 +19,11 @@
def __init__(self):
# preload csv file
logger_cli.info("# Preloading MCP release versions")
- with open(os.path.join(pkg_dir, 'etc', config.pkg_versions_map)) as f:
+ with open(os.path.join(
+ pkg_dir,
+ 'versions',
+ config.pkg_versions_map)
+ ) as f:
_reader = csv.reader(f, delimiter=',')
# load packages
for row in _reader: