From 9e5f253c35678df1ef2ea38c70c29cc06883a640 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 12 Apr 2024 19:27:28 +0300 Subject: [PATCH] Fixed for ponce repo --- configs/repositories.toml | 1 - slpkg/repositories.py | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/configs/repositories.toml b/configs/repositories.toml index a6abf3bb..ffc6b8a5 100644 --- a/configs/repositories.toml +++ b/configs/repositories.toml @@ -23,7 +23,6 @@ VERSION = "15.0" [PONCE] ENABLE = false MIRROR = "https://cgit.ponce.cc/slackbuilds/plain/" -VERSION = "current" [SLACK] ENABLE = false diff --git a/slpkg/repositories.py b/slpkg/repositories.py index 9c9f3eb3..f764da94 100644 --- a/slpkg/repositories.py +++ b/slpkg/repositories.py @@ -41,8 +41,7 @@ class Repositories: ponce_repo: bool = False ponce_repo_name: str = 'ponce' ponce_repo_path: Path = Path(repositories_path, ponce_repo_name) - ponce_repo_mirror_packages: str = '' - ponce_repo_mirror_changelog: str = '' + ponce_repo_mirror: str = '' ponce_repo_slackbuilds: str = 'SLACKBUILDS.TXT' ponce_repo_changelog: str = 'ChangeLog.txt' ponce_repo_tag: str = '_SBo' @@ -232,10 +231,7 @@ class Repositories: sbo_repo_mirror_changelog: str = f'{sbo_repo_url}{sbo_repo_version}/' ponce_repo: bool = repos_config['PONCE']['ENABLE'] - ponce_repo_url: str = repos_config['PONCE']['MIRROR'] - ponce_repo_version: str = repos_config['PONCE']['VERSION'] - ponce_repo_mirror_packages: str = f'{ponce_repo_url}{ponce_repo_version}/' - ponce_repo_mirror_changelog: str = f'{ponce_repo_url}{ponce_repo_version}/' + ponce_repo_mirror: str = repos_config['PONCE']['MIRROR'] slack_repo: bool = repos_config['SLACK']['ENABLE'] slack_repo_url: str = repos_config['SLACK']['MIRROR'] @@ -396,8 +392,8 @@ class Repositories: ponce_repo_name: { 'enable': ponce_repo, 'path': ponce_repo_path, - 'mirror_packages': ponce_repo_mirror_packages, - 'mirror_changelog': ponce_repo_mirror_changelog, + 'mirror_packages': ponce_repo_mirror, + 'mirror_changelog': ponce_repo_mirror, 'slackbuilds_txt': ponce_repo_slackbuilds, 'changelog_txt': ponce_repo_changelog, 'repo_tag': ponce_repo_tag,