diff --git a/ChangeLog.txt b/ChangeLog.txt index 787e6ce8..d8884ba6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,11 +1,14 @@ ## slpkg - ChangeLog -### 5.1.1 - 11/06/2024 +### 5.1.1 - 22/07/2024 - Added: * Added an 'installed' tag for installed packages in the search command * Added option --fetch to see the fastest and the slower mirror +- Fixed: + * Fixed to create custom repositories (Thanks to mac-a-r0ni) + ### 5.1.0 - 06/06/2024 - Added: diff --git a/slpkg/repositories.py b/slpkg/repositories.py index 119b2acc..bf6a2107 100644 --- a/slpkg/repositories.py +++ b/slpkg/repositories.py @@ -420,18 +420,20 @@ class Repositories: # pylint: disable=[R0902] for item in items_to_remove: diff_repos.remove(item) + diff_repos = [name.upper() for name in diff_repos] + if diff_repos: for repo, data in repos_config.items(): if repo in diff_repos: - mirror_packages: str = data.get('mirror', '') + mirror_packages: str = data.get('MIRROR', '') mirror_changelog: str = mirror_packages - if data.get('changelog'): - mirror_changelog: str = data.get('changelog', '') + if data.get('CHANGELOG'): + mirror_changelog: str = data.get('CHANGELOG', '') values = { - 'enable': data.get('enable', False), - 'path': Path(repositories_path, str(repo)), + 'enable': data.get('ENABLE'), + 'path': Path(repositories_path, str(repo.lower())), 'mirror_packages': mirror_packages, 'mirror_changelog': mirror_changelog, 'packages_txt': packages_txt, @@ -439,4 +441,4 @@ class Repositories: # pylint: disable=[R0902] 'changelog_txt': changelog_txt, 'repo_tag': data.get('tag', '') } - repositories[str(repo)] = values + repositories[str(repo.lower())] = values