Updated for repositories

This commit is contained in:
Dimitris Zlatanidis 2024-04-14 23:43:00 +03:00
parent ba597278cb
commit 2ef63fb46c
4 changed files with 127 additions and 2019 deletions

View file

@ -17,8 +17,7 @@ REPO = "sbo"
[SBO] [SBO]
ENABLE = true ENABLE = true
MIRROR = "https://slackbuilds.org/slackbuilds/" MIRROR = "https://slackbuilds.org/slackbuilds/15.0/"
VERSION = "15.0"
[PONCE] [PONCE]
ENABLE = false ENABLE = false
@ -26,16 +25,16 @@ MIRROR = "https://cgit.ponce.cc/slackbuilds/plain/"
[SLACK] [SLACK]
ENABLE = false ENABLE = false
MIRROR = "https://slackware.uk/slackware/slackware64-15.0/" MIRROR = "http://mirror.nl.leaseweb.net/slackware/slackware64-15.0/"
[SLACK_EXTRA] [SLACK_EXTRA]
ENABLE = false ENABLE = false
MIRROR = "https://slackware.uk/slackware/slackware64-15.0/" MIRROR = "http://mirror.nl.leaseweb.net/slackware/slackware64-15.0/"
BRANCH = "extra" BRANCH = "extra"
[SLACK_PATCHES] [SLACK_PATCHES]
ENABLE = false ENABLE = false
MIRROR = "https://slackware.uk/slackware/slackware64-15.0/" MIRROR = "http://mirror.nl.leaseweb.net/slackware/slackware64-15.0/"
BRANCH = "patches" BRANCH = "patches"
[ALIEN] [ALIEN]

File diff suppressed because it is too large Load diff

View file

@ -31,12 +31,15 @@ class Repositories:
last_update_json: Path = Path(repositories_path, 'last_update.json') last_update_json: Path = Path(repositories_path, 'last_update.json')
default_repository: str = 'sbo' default_repository: str = 'sbo'
slackbuilds_txt: str = 'SLACKBUILDS.TXT'
packages_txt: str = 'PACKAGES.TXT'
checksums_md5: str = 'CHECKSUMS.md5'
changelog_txt: str = 'ChangeLog.txt'
sbo_repo: bool = True sbo_repo: bool = True
sbo_repo_name: str = 'sbo' sbo_repo_name: str = 'sbo'
sbo_repo_path: Path = Path(repositories_path, sbo_repo_name) sbo_repo_path: Path = Path(repositories_path, sbo_repo_name)
sbo_repo_mirror: str = '' sbo_repo_mirror: str = ''
sbo_repo_slackbuilds: str = 'slackBUILDS.TXT'
sbo_repo_changelog: str = 'ChangeLog.txt'
sbo_repo_tag: str = '_SBo' sbo_repo_tag: str = '_SBo'
sbo_repo_tar_suffix: str = '.tar.gz' sbo_repo_tar_suffix: str = '.tar.gz'
@ -44,19 +47,13 @@ class Repositories:
ponce_repo_name: str = 'ponce' ponce_repo_name: str = 'ponce'
ponce_repo_path: Path = Path(repositories_path, ponce_repo_name) ponce_repo_path: Path = Path(repositories_path, ponce_repo_name)
ponce_repo_mirror: str = '' ponce_repo_mirror: str = ''
ponce_repo_slackbuilds: str = 'slackBUILDS.TXT'
ponce_repo_changelog: str = 'ChangeLog.txt'
ponce_repo_tag: str = '_SBo' ponce_repo_tag: str = '_SBo'
ponce_repo_tar_suffix: str = '.tar.gz' ponce_repo_tar_suffix: str = '.tar.gz'
slack_repo: bool = False slack_repo: bool = False
slack_repo_name: str = 'slack' slack_repo_name: str = 'slack'
slack_repo_path: Path = Path(repositories_path, slack_repo_name) slack_repo_path: Path = Path(repositories_path, slack_repo_name)
slack_repo_mirror_packages: str = '' slack_repo_mirror: str = ''
slack_repo_mirror_changelog: str = ''
slack_repo_packages: str = 'PACKAGES.TXT'
slack_repo_checksums: str = 'CHECKSUMS.md5'
slack_repo_changelog: str = 'ChangeLog.txt'
slack_repo_tag: str = '' slack_repo_tag: str = ''
slack_extra_repo: bool = False slack_extra_repo: bool = False
@ -64,9 +61,6 @@ class Repositories:
slack_extra_repo_path: Path = Path(repositories_path, slack_extra_repo_name) slack_extra_repo_path: Path = Path(repositories_path, slack_extra_repo_name)
slack_extra_repo_mirror_packages: str = '' slack_extra_repo_mirror_packages: str = ''
slack_extra_repo_mirror_changelog: str = '' slack_extra_repo_mirror_changelog: str = ''
slack_extra_repo_packages: str = 'PACKAGES.TXT'
slack_extra_repo_checksums: str = 'CHECKSUMS.md5'
slack_extra_repo_changelog: str = 'ChangeLog.txt'
slack_extra_repo_tag: str = '' slack_extra_repo_tag: str = ''
slack_patches_repo: bool = False slack_patches_repo: bool = False
@ -74,9 +68,6 @@ class Repositories:
slack_patches_repo_path: Path = Path(repositories_path, slack_patches_repo_name) slack_patches_repo_path: Path = Path(repositories_path, slack_patches_repo_name)
slack_patches_repo_mirror_packages: str = '' slack_patches_repo_mirror_packages: str = ''
slack_patches_repo_mirror_changelog: str = '' slack_patches_repo_mirror_changelog: str = ''
slack_patches_repo_packages: str = 'PACKAGES.TXT'
slack_patches_repo_checksums: str = 'CHECKSUMS.md5'
slack_patches_repo_changelog: str = 'ChangeLog.txt'
slack_patches_repo_tag: str = '' slack_patches_repo_tag: str = ''
alien_repo: bool = False alien_repo: bool = False
@ -84,9 +75,6 @@ class Repositories:
alien_repo_path: Path = Path(repositories_path, alien_repo_name) alien_repo_path: Path = Path(repositories_path, alien_repo_name)
alien_repo_mirror_packages: str = '' alien_repo_mirror_packages: str = ''
alien_repo_mirror_changelog: str = '' alien_repo_mirror_changelog: str = ''
alien_repo_packages: str = 'PACKAGES.TXT'
alien_repo_checksums: str = 'CHECKSUMS.md5'
alien_repo_changelog: str = 'ChangeLog.txt'
alien_repo_tag: str = 'alien' alien_repo_tag: str = 'alien'
multilib_repo: bool = False multilib_repo: bool = False
@ -94,9 +82,6 @@ class Repositories:
multilib_repo_path: Path = Path(repositories_path, multilib_repo_name) multilib_repo_path: Path = Path(repositories_path, multilib_repo_name)
multilib_repo_mirror_packages: str = '' multilib_repo_mirror_packages: str = ''
multilib_repo_mirror_changelog: str = '' multilib_repo_mirror_changelog: str = ''
multilib_repo_packages: str = 'PACKAGES.TXT'
multilib_repo_checksums: str = 'CHECKSUMS.md5'
multilib_repo_changelog: str = 'ChangeLog.txt'
multilib_repo_tag: str = 'alien' multilib_repo_tag: str = 'alien'
restricted_repo: bool = False restricted_repo: bool = False
@ -104,19 +89,12 @@ class Repositories:
restricted_repo_path: Path = Path(repositories_path, restricted_repo_name) restricted_repo_path: Path = Path(repositories_path, restricted_repo_name)
restricted_repo_mirror_packages: str = '' restricted_repo_mirror_packages: str = ''
restricted_repo_mirror_changelog: str = '' restricted_repo_mirror_changelog: str = ''
restricted_repo_packages: str = 'PACKAGES.TXT'
restricted_repo_checksums: str = 'CHECKSUMS.md5'
restricted_repo_changelog: str = 'ChangeLog.txt'
restricted_repo_tag: str = 'alien' restricted_repo_tag: str = 'alien'
gnome_repo: bool = False gnome_repo: bool = False
gnome_repo_name: str = 'gnome' gnome_repo_name: str = 'gnome'
gnome_repo_path: Path = Path(repositories_path, gnome_repo_name) gnome_repo_path: Path = Path(repositories_path, gnome_repo_name)
gnome_repo_mirror_packages: str = '' gnome_repo_mirror: str = ''
gnome_repo_mirror_changelog: str = ''
gnome_repo_packages: str = 'PACKAGES.TXT'
gnome_repo_checksums: str = 'CHECKSUMS.md5'
gnome_repo_changelog: str = 'ChangeLog.txt'
gnome_repo_tag: str = 'gfs' gnome_repo_tag: str = 'gfs'
msb_repo: bool = False msb_repo: bool = False
@ -124,9 +102,6 @@ class Repositories:
msb_repo_path: Path = Path(repositories_path, msb_repo_name) msb_repo_path: Path = Path(repositories_path, msb_repo_name)
msb_repo_mirror_packages: str = '' msb_repo_mirror_packages: str = ''
msb_repo_mirror_changelog: str = '' msb_repo_mirror_changelog: str = ''
msb_repo_packages: str = 'PACKAGES.TXT'
msb_repo_checksums: str = 'CHECKSUMS.md5'
msb_repo_changelog: str = 'ChangeLog.txt'
msb_repo_tag: str = 'msb' msb_repo_tag: str = 'msb'
csb_repo: bool = False csb_repo: bool = False
@ -134,89 +109,54 @@ class Repositories:
csb_repo_path: Path = Path(repositories_path, csb_repo_name) csb_repo_path: Path = Path(repositories_path, csb_repo_name)
csb_repo_mirror_packages: str = '' csb_repo_mirror_packages: str = ''
csb_repo_mirror_changelog: str = '' csb_repo_mirror_changelog: str = ''
csb_repo_packages: str = 'PACKAGES.TXT'
csb_repo_checksums: str = 'CHECKSUMS.md5'
csb_repo_changelog: str = 'ChangeLog.txt'
csb_repo_tag: str = 'csb' csb_repo_tag: str = 'csb'
conraid_repo: bool = False conraid_repo: bool = False
conraid_repo_name: str = 'conraid' conraid_repo_name: str = 'conraid'
conraid_repo_path: Path = Path(repositories_path, conraid_repo_name) conraid_repo_path: Path = Path(repositories_path, conraid_repo_name)
conraid_repo_mirror_packages: str = '' conraid_repo_mirror: str = ''
conraid_repo_mirror_changelog: str = ''
conraid_repo_packages: str = 'PACKAGES.TXT'
conraid_repo_checksums: str = 'CHECKSUMS.md5'
conraid_repo_changelog: str = 'ChangeLog.txt'
conraid_repo_tag: str = 'cf' conraid_repo_tag: str = 'cf'
slackdce_repo: bool = False slackdce_repo: bool = False
slackdce_repo_name: str = 'slackdce' slackdce_repo_name: str = 'slackdce'
slackdce_repo_path: Path = Path(repositories_path, slackdce_repo_name) slackdce_repo_path: Path = Path(repositories_path, slackdce_repo_name)
slackdce_repo_mirror_packages: str = '' slackdce_repo_mirror: str = ''
slackdce_repo_mirror_changelog: str = ''
slackdce_repo_packages: str = 'PACKAGES.TXT'
slackdce_repo_checksums: str = 'CHECKSUMS.md5'
slackdce_repo_changelog: str = 'ChangeLog.txt'
slackdce_repo_tag: str = 'dce' slackdce_repo_tag: str = 'dce'
slackonly_repo: bool = False slackonly_repo: bool = False
slackonly_repo_name: str = 'slackonly' slackonly_repo_name: str = 'slackonly'
slackonly_repo_path: Path = Path(repositories_path, slackonly_repo_name) slackonly_repo_path: Path = Path(repositories_path, slackonly_repo_name)
slackonly_repo_mirror_packages: str = '' slackonly_repo_mirror: str = ''
slackonly_repo_mirror_changelog: str = ''
slackonly_repo_packages: str = 'PACKAGES.TXT'
slackonly_repo_checksums: str = 'CHECKSUMS.md5'
slackonly_repo_changelog: str = 'ChangeLog.txt'
slackonly_repo_tag: str = 'slonly' slackonly_repo_tag: str = 'slonly'
salix_repo: bool = False salix_repo: bool = False
salix_repo_name: str = 'salix' salix_repo_name: str = 'salix'
salix_repo_path: Path = Path(repositories_path, salix_repo_name) salix_repo_path: Path = Path(repositories_path, salix_repo_name)
salix_repo_mirror_packages: str = '' salix_repo_mirror: str = ''
salix_repo_mirror_changelog: str = ''
salix_repo_packages: str = 'PACKAGES.TXT'
salix_repo_checksums: str = 'CHECKSUMS.md5'
salix_repo_changelog: str = 'ChangeLog.txt'
salix_repo_tag: str = '' salix_repo_tag: str = ''
salix_extra_repo: bool = False salix_extra_repo: bool = False
salix_extra_repo_name: str = 'salix_extra' salix_extra_repo_name: str = 'salix_extra'
salix_extra_repo_path: Path = Path(repositories_path, salix_extra_repo_name) salix_extra_repo_path: Path = Path(repositories_path, salix_extra_repo_name)
salix_extra_repo_mirror_packages: str = '' salix_extra_repo_mirror: str = ''
salix_extra_repo_mirror_changelog: str = ''
salix_extra_repo_packages: str = 'PACKAGES.TXT'
salix_extra_repo_checksums: str = 'CHECKSUMS.md5'
salix_extra_repo_changelog: str = 'ChangeLog.txt'
salix_extra_repo_tag: str = '' salix_extra_repo_tag: str = ''
slackel_repo: bool = False slackel_repo: bool = False
slackel_repo_name: str = 'slackel' slackel_repo_name: str = 'slackel'
slackel_repo_path: Path = Path(repositories_path, slackel_repo_name) slackel_repo_path: Path = Path(repositories_path, slackel_repo_name)
slackel_repo_mirror_packages: str = '' slackel_repo_mirror: str = ''
slackel_repo_mirror_changelog: str = ''
slackel_repo_packages: str = 'PACKAGES.TXT'
slackel_repo_checksums: str = 'CHECKSUMS.md5'
slackel_repo_changelog: str = 'ChangeLog.txt'
slackel_repo_tag: str = 'dj' slackel_repo_tag: str = 'dj'
slint_repo: bool = False slint_repo: bool = False
slint_repo_name: str = 'slint' slint_repo_name: str = 'slint'
slint_repo_path: Path = Path(repositories_path, slint_repo_name) slint_repo_path: Path = Path(repositories_path, slint_repo_name)
slint_repo_mirror_packages: str = '' slint_repo_mirror: str = ''
slint_repo_mirror_changelog: str = ''
slint_repo_packages: str = 'PACKAGES.TXT'
slint_repo_checksums: str = 'CHECKSUMS.md5'
slint_repo_changelog: str = 'ChangeLog.txt'
slint_repo_tag: str = 'slint' slint_repo_tag: str = 'slint'
pprkut_repo: bool = False pprkut_repo: bool = False
pprkut_repo_name: str = 'pprkut' pprkut_repo_name: str = 'pprkut'
pprkut_repo_path: Path = Path(repositories_path, pprkut_repo_name) pprkut_repo_path: Path = Path(repositories_path, pprkut_repo_name)
pprkut_repo_mirror_packages: str = '' pprkut_repo_mirror: str = ''
pprkut_repo_mirror_changelog: str = ''
pprkut_repo_packages: str = 'PACKAGES.TXT'
pprkut_repo_checksums: str = 'CHECKSUMS.md5'
pprkut_repo_changelog: str = 'ChangeLog.txt'
pprkut_repo_tag: str = 'pprkut' pprkut_repo_tag: str = 'pprkut'
try: try:
@ -229,48 +169,25 @@ class Repositories:
default_repository: str = repos_config['default']['repo'].lower() default_repository: str = repos_config['default']['repo'].lower()
sbo_repo: bool = repos_config['sbo']['enable'] sbo_repo: bool = repos_config['sbo']['enable']
sbo_repo_url: str = repos_config['sbo']['mirror'] sbo_repo_mirror: str = repos_config['sbo']['mirror']
sbo_repo_version: str = repos_config['sbo']['version']
sbo_repo_mirror: str = f'{sbo_repo_url}{sbo_repo_version}/'
ponce_repo: bool = repos_config['ponce']['enable'] ponce_repo: bool = repos_config['ponce']['enable']
ponce_repo_mirror: str = repos_config['ponce']['mirror'] ponce_repo_mirror: str = repos_config['ponce']['mirror']
slack_repo: bool = repos_config['slack']['enable'] slack_repo: bool = repos_config['slack']['enable']
slack_repo_url: str = repos_config['slack']['mirror'] slack_repo_mirror: str = repos_config['slack']['mirror']
slack_repo_version: str = repos_config['slack']['version']
slack_repo_arch: str = repos_config['slack']['arch']
slack_arch: str = ''
if slack_repo_arch == 'x86_64':
slack_arch: str = '64'
slack_repo_mirror_packages: str = f'{slack_repo_url}slackware{slack_arch}-{slack_repo_version}/'
slack_repo_mirror_changelog: str = f'{slack_repo_url}slackware{slack_arch}-{slack_repo_version}/'
slack_extra_repo: bool = repos_config['slack_extra']['enable'] slack_extra_repo: bool = repos_config['slack_extra']['enable']
slack_extra_repo_url: str = repos_config['slack_extra']['mirror'] slack_extra_repo_url: str = repos_config['slack_extra']['mirror']
slack_extra_repo_version: str = repos_config['slack_extra']['version']
slack_extra_repo_arch: str = repos_config['slack_extra']['arch']
slack_extra_arch: str = ''
if slack_extra_repo_arch == 'x86_64':
slack_extra_arch: str = '64'
slack_extra_repo_branch: str = repos_config['slack_extra']['branch'] slack_extra_repo_branch: str = repos_config['slack_extra']['branch']
slack_extra_repo_mirror_packages: str = (f'{slack_extra_repo_url}slackware{slack_extra_arch}-' slack_extra_repo_mirror_packages: str = f'{slack_extra_repo_url}{slack_extra_repo_branch}/'
f'{slack_extra_repo_version}/{slack_extra_repo_branch}/') slack_extra_repo_mirror_changelog: str = slack_extra_repo_url
slack_extra_repo_mirror_changelog: str = (f'{slack_extra_repo_url}slackware{slack_extra_arch}-'
f'{slack_extra_repo_version}/')
slack_patches_repo: bool = repos_config['slack_patches']['enable'] slack_patches_repo: bool = repos_config['slack_patches']['enable']
slack_patches_repo_url: str = repos_config['slack_patches']['mirror'] slack_patches_repo_url: str = repos_config['slack_patches']['mirror']
slack_patches_repo_version: str = repos_config['slack_patches']['version']
slack_patches_repo_arch: str = repos_config['slack_patches']['arch']
slack_patches_arch: str = ''
if slack_patches_repo_arch == 'x86_64':
slack_patches_arch: str = '64'
slack_patches_repo_branch: str = repos_config['slack_patches']['branch'] slack_patches_repo_branch: str = repos_config['slack_patches']['branch']
slack_patches_repo_mirror_packages: str = (f'{slack_patches_repo_url}slackware{slack_patches_arch}-' slack_patches_repo_mirror_packages: str = f'{slack_patches_repo_url}{slack_patches_repo_branch}/'
f'{slack_patches_repo_version}/{slack_patches_repo_branch}/') slack_patches_repo_mirror_changelog: str = slack_patches_repo_url
slack_patches_repo_mirror_changelog: str = (f'{slack_patches_repo_url}slackware{slack_patches_arch}-'
f'{slack_patches_repo_version}/')
alien_repo: bool = repos_config['alien']['enable'] alien_repo: bool = repos_config['alien']['enable']
alien_repo_url: str = repos_config['alien']['mirror'] alien_repo_url: str = repos_config['alien']['mirror']
@ -294,11 +211,7 @@ class Repositories:
restricted_repo_mirror_changelog: str = restricted_repo_url restricted_repo_mirror_changelog: str = restricted_repo_url
gnome_repo: bool = repos_config['gnome']['enable'] gnome_repo: bool = repos_config['gnome']['enable']
gnome_repo_url: str = repos_config['gnome']['mirror'] gnome_repo_mirror: str = repos_config['gnome']['mirror']
gnome_repo_version: str = repos_config['gnome']['version']
gnome_repo_arch: str = repos_config['gnome']['arch']
gnome_repo_mirror_packages: str = f'{gnome_repo_url}{gnome_repo_version}/{gnome_repo_arch}/'
gnome_repo_mirror_changelog: str = f'{gnome_repo_url}{gnome_repo_version}/{gnome_repo_arch}/'
msb_repo: bool = repos_config['msb']['enable'] msb_repo: bool = repos_config['msb']['enable']
msb_repo_url: str = repos_config['msb']['mirror'] msb_repo_url: str = repos_config['msb']['mirror']
@ -316,67 +229,28 @@ class Repositories:
csb_repo_mirror_changelog: str = csb_repo_url csb_repo_mirror_changelog: str = csb_repo_url
conraid_repo: bool = repos_config['conraid']['enable'] conraid_repo: bool = repos_config['conraid']['enable']
conraid_repo_url: str = repos_config['conraid']['mirror'] conraid_repo_mirror: str = repos_config['conraid']['mirror']
conraid_repo_arch: str = repos_config['conraid']['arch']
conraid_repo_version: str = repos_config['conraid']['version']
conraid_arch: str = ''
if conraid_repo_arch == 'x86_64':
conraid_arch: str = '64'
conraid_repo_mirror_packages: str = f'{conraid_repo_url}slackware{conraid_arch}-{conraid_repo_version}/'
conraid_repo_mirror_changelog: str = f'{conraid_repo_url}slackware{conraid_arch}-{conraid_repo_version}/'
slackdce_repo: bool = repos_config['slackdce']['enable'] slackdce_repo: bool = repos_config['slackdce']['enable']
slackdce_repo_url: str = repos_config['slackdce']['mirror'] slackdce_repo_mirror: str = repos_config['slackdce']['mirror']
slackdce_repo_version: str = repos_config['slackdce']['version']
slackdce_repo_arch: str = repos_config['slackdce']['arch']
slackdce_repo_mirror_packages: str = f'{slackdce_repo_url}{slackdce_repo_version}/{slackdce_repo_arch}/'
slackdce_repo_mirror_changelog: str = f'{slackdce_repo_url}{slackdce_repo_version}/{slackdce_repo_arch}/'
slackonly_repo: bool = repos_config['slackonly']['enable'] slackonly_repo: bool = repos_config['slackonly']['enable']
slackonly_repo_url: str = repos_config['slackonly']['mirror'] slackonly_repo_mirror: str = repos_config['slackonly']['mirror']
slackonly_repo_version: str = repos_config['slackonly']['version']
slackonly_repo_arch: str = repos_config['slackonly']['arch']
slackonly_repo_mirror_packages: str = f'{slackonly_repo_url}{slackonly_repo_version}-{slackonly_repo_arch}/'
slackonly_repo_mirror_changelog: str = (f'{slackonly_repo_url}{slackonly_repo_version}-'
f'{slackonly_repo_arch}/')
salix_repo: bool = repos_config['salix']['enable'] salix_repo: bool = repos_config['salix']['enable']
salix_repo_url: str = repos_config['salix']['mirror'] salix_repo_mirror: str = repos_config['salix']['mirror']
salix_repo_arch: str = repos_config['salix']['arch']
salix_repo_version: str = repos_config['salix']['version']
salix_repo_mirror_packages: str = f'{salix_repo_url}{salix_repo_arch}/{salix_repo_version}/'
salix_repo_mirror_changelog: str = f'{salix_repo_url}{salix_repo_arch}/{salix_repo_version}/'
salix_extra_repo: bool = repos_config['salix_extra']['enable'] salix_extra_repo: bool = repos_config['salix_extra']['enable']
salix_extra_repo_url: str = repos_config['salix_extra']['mirror'] salix_extra_repo_mirror: str = repos_config['salix_extra']['mirror']
salix_extra_repo_arch: str = repos_config['salix_extra']['arch']
salix_extra_repo_branch: str = repos_config['salix_extra']['branch']
salix_extra_repo_version: str = repos_config['salix_extra']['version']
salix_extra_repo_mirror_packages: str = (f'{salix_extra_repo_url}{salix_extra_repo_arch}/'
f'{salix_extra_repo_branch}-{salix_extra_repo_version}/')
salix_extra_repo_mirror_changelog: str = (f'{salix_extra_repo_url}{salix_extra_repo_arch}/'
f'{salix_extra_repo_branch}-{salix_extra_repo_version}/')
slackel_repo: bool = repos_config['slackel']['enable'] slackel_repo: bool = repos_config['slackel']['enable']
slackel_repo_url: str = repos_config['slackel']['mirror'] slackel_repo_mirror: str = repos_config['slackel']['mirror']
slackel_repo_arch: str = repos_config['slackel']['arch']
slackel_repo_version: str = repos_config['slackel']['version']
slackel_repo_mirror_packages: str = f'{slackel_repo_url}{slackel_repo_arch}/{slackel_repo_version}/'
slackel_repo_mirror_changelog: str = f'{slackel_repo_url}{slackel_repo_arch}/{slackel_repo_version}/'
slint_repo: bool = repos_config['slint']['enable'] slint_repo: bool = repos_config['slint']['enable']
slint_repo_url: str = repos_config['slint']['mirror'] slint_repo_mirror: str = repos_config['slint']['mirror']
slint_repo_arch: str = repos_config['slint']['arch']
slint_repo_version: str = repos_config['slint']['version']
slint_repo_mirror_packages: str = f'{slint_repo_url}{slint_repo_arch}/slint-{slint_repo_version}/'
slint_repo_mirror_changelog: str = f'{slint_repo_url}{slint_repo_arch}/slint-{slint_repo_version}/'
pprkut_repo: bool = repos_config['pprkut']['enable'] pprkut_repo: bool = repos_config['pprkut']['enable']
pprkut_repo_url: str = repos_config['pprkut']['mirror'] pprkut_repo_mirror: str = repos_config['pprkut']['mirror']
pprkut_repo_version: str = repos_config['pprkut']['version']
pprkut_repo_arch: str = repos_config['pprkut']['arch']
pprkut_repo_mirror_packages: str = f'{pprkut_repo_url}{pprkut_repo_version}/{pprkut_repo_arch}/'
pprkut_repo_mirror_changelog: str = f'{pprkut_repo_url}{pprkut_repo_version}/{pprkut_repo_arch}/'
except (tomli.TOMLDecodeError, KeyError) as error: except (tomli.TOMLDecodeError, KeyError) as error:
toml_errors.raise_toml_error_message(error, repositories_toml_file) toml_errors.raise_toml_error_message(error, repositories_toml_file)
@ -387,8 +261,8 @@ class Repositories:
'path': sbo_repo_path, 'path': sbo_repo_path,
'mirror_packages': sbo_repo_mirror, 'mirror_packages': sbo_repo_mirror,
'mirror_changelog': sbo_repo_mirror, 'mirror_changelog': sbo_repo_mirror,
'slackbuilds_txt': sbo_repo_slackbuilds, 'slackbuilds_txt': slackbuilds_txt,
'changelog_txt': sbo_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': sbo_repo_tag, 'repo_tag': sbo_repo_tag,
'tar_suffix': sbo_repo_tar_suffix}, 'tar_suffix': sbo_repo_tar_suffix},
@ -397,19 +271,19 @@ class Repositories:
'path': ponce_repo_path, 'path': ponce_repo_path,
'mirror_packages': ponce_repo_mirror, 'mirror_packages': ponce_repo_mirror,
'mirror_changelog': ponce_repo_mirror, 'mirror_changelog': ponce_repo_mirror,
'slackbuilds_txt': ponce_repo_slackbuilds, 'slackbuilds_txt': slackbuilds_txt,
'changelog_txt': ponce_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': ponce_repo_tag, 'repo_tag': ponce_repo_tag,
'tar_suffix': ponce_repo_tar_suffix}, 'tar_suffix': ponce_repo_tar_suffix},
slack_repo_name: { slack_repo_name: {
'enable': slack_repo, 'enable': slack_repo,
'path': slack_repo_path, 'path': slack_repo_path,
'mirror_packages': slack_repo_mirror_packages, 'mirror_packages': slack_repo_mirror,
'mirror_changelog': slack_repo_mirror_changelog, 'mirror_changelog': slack_repo_mirror,
'packages_txt': slack_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slack_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slack_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slack_repo_tag}, 'repo_tag': slack_repo_tag},
slack_extra_repo_name: { slack_extra_repo_name: {
@ -417,9 +291,9 @@ class Repositories:
'path': slack_extra_repo_path, 'path': slack_extra_repo_path,
'mirror_packages': slack_extra_repo_mirror_packages, 'mirror_packages': slack_extra_repo_mirror_packages,
'mirror_changelog': slack_extra_repo_mirror_changelog, 'mirror_changelog': slack_extra_repo_mirror_changelog,
'packages_txt': slack_extra_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slack_extra_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slack_extra_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slack_extra_repo_tag}, 'repo_tag': slack_extra_repo_tag},
slack_patches_repo_name: { slack_patches_repo_name: {
@ -427,9 +301,9 @@ class Repositories:
'path': slack_patches_repo_path, 'path': slack_patches_repo_path,
'mirror_packages': slack_patches_repo_mirror_packages, 'mirror_packages': slack_patches_repo_mirror_packages,
'mirror_changelog': slack_patches_repo_mirror_changelog, 'mirror_changelog': slack_patches_repo_mirror_changelog,
'packages_txt': slack_patches_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slack_patches_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slack_patches_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slack_patches_repo_tag}, 'repo_tag': slack_patches_repo_tag},
alien_repo_name: { alien_repo_name: {
@ -437,9 +311,9 @@ class Repositories:
'path': alien_repo_path, 'path': alien_repo_path,
'mirror_packages': alien_repo_mirror_packages, 'mirror_packages': alien_repo_mirror_packages,
'mirror_changelog': alien_repo_mirror_changelog, 'mirror_changelog': alien_repo_mirror_changelog,
'packages_txt': alien_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': alien_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': alien_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': alien_repo_tag}, 'repo_tag': alien_repo_tag},
multilib_repo_name: { multilib_repo_name: {
@ -447,9 +321,9 @@ class Repositories:
'path': multilib_repo_path, 'path': multilib_repo_path,
'mirror_packages': multilib_repo_mirror_packages, 'mirror_packages': multilib_repo_mirror_packages,
'mirror_changelog': multilib_repo_mirror_changelog, 'mirror_changelog': multilib_repo_mirror_changelog,
'packages_txt': multilib_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': multilib_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': multilib_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': multilib_repo_tag}, 'repo_tag': multilib_repo_tag},
restricted_repo_name: { restricted_repo_name: {
@ -457,19 +331,19 @@ class Repositories:
'path': restricted_repo_path, 'path': restricted_repo_path,
'mirror_packages': restricted_repo_mirror_packages, 'mirror_packages': restricted_repo_mirror_packages,
'mirror_changelog': restricted_repo_mirror_changelog, 'mirror_changelog': restricted_repo_mirror_changelog,
'packages_txt': restricted_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': restricted_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': restricted_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': restricted_repo_tag}, 'repo_tag': restricted_repo_tag},
gnome_repo_name: { gnome_repo_name: {
'enable': gnome_repo, 'enable': gnome_repo,
'path': gnome_repo_path, 'path': gnome_repo_path,
'mirror_packages': gnome_repo_mirror_packages, 'mirror_packages': gnome_repo_mirror,
'mirror_changelog': gnome_repo_mirror_changelog, 'mirror_changelog': gnome_repo_mirror,
'packages_txt': gnome_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': gnome_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': gnome_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': gnome_repo_tag}, 'repo_tag': gnome_repo_tag},
msb_repo_name: { msb_repo_name: {
@ -477,9 +351,9 @@ class Repositories:
'path': msb_repo_path, 'path': msb_repo_path,
'mirror_packages': msb_repo_mirror_packages, 'mirror_packages': msb_repo_mirror_packages,
'mirror_changelog': msb_repo_mirror_changelog, 'mirror_changelog': msb_repo_mirror_changelog,
'packages_txt': msb_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': msb_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': msb_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': msb_repo_tag}, 'repo_tag': msb_repo_tag},
csb_repo_name: { csb_repo_name: {
@ -487,89 +361,89 @@ class Repositories:
'path': csb_repo_path, 'path': csb_repo_path,
'mirror_packages': csb_repo_mirror_packages, 'mirror_packages': csb_repo_mirror_packages,
'mirror_changelog': csb_repo_mirror_changelog, 'mirror_changelog': csb_repo_mirror_changelog,
'packages_txt': csb_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': csb_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': csb_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': csb_repo_tag}, 'repo_tag': csb_repo_tag},
conraid_repo_name: { conraid_repo_name: {
'enable': conraid_repo, 'enable': conraid_repo,
'path': conraid_repo_path, 'path': conraid_repo_path,
'mirror_packages': conraid_repo_mirror_packages, 'mirror_packages': conraid_repo_mirror,
'mirror_changelog': conraid_repo_mirror_changelog, 'mirror_changelog': conraid_repo_mirror,
'packages_txt': conraid_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': conraid_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': conraid_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': conraid_repo_tag}, 'repo_tag': conraid_repo_tag},
slackdce_repo_name: { slackdce_repo_name: {
'enable': slackdce_repo, 'enable': slackdce_repo,
'path': slackdce_repo_path, 'path': slackdce_repo_path,
'mirror_packages': slackdce_repo_mirror_packages, 'mirror_packages': slackdce_repo_mirror,
'mirror_changelog': slackdce_repo_mirror_changelog, 'mirror_changelog': slackdce_repo_mirror,
'packages_txt': slackdce_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slackdce_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slackdce_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slackdce_repo_tag}, 'repo_tag': slackdce_repo_tag},
slackonly_repo_name: { slackonly_repo_name: {
'enable': slackonly_repo, 'enable': slackonly_repo,
'path': slackonly_repo_path, 'path': slackonly_repo_path,
'mirror_packages': slackonly_repo_mirror_packages, 'mirror_packages': slackonly_repo_mirror,
'mirror_changelog': slackonly_repo_mirror_changelog, 'mirror_changelog': slackonly_repo_mirror,
'packages_txt': slackonly_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slackonly_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slackonly_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slackonly_repo_tag}, 'repo_tag': slackonly_repo_tag},
salix_repo_name: { salix_repo_name: {
'enable': salix_repo, 'enable': salix_repo,
'path': salix_repo_path, 'path': salix_repo_path,
'mirror_packages': salix_repo_mirror_packages, 'mirror_packages': salix_repo_mirror,
'mirror_changelog': salix_repo_mirror_changelog, 'mirror_changelog': salix_repo_mirror,
'packages_txt': salix_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': salix_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': salix_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': salix_repo_tag}, 'repo_tag': salix_repo_tag},
salix_extra_repo_name: { salix_extra_repo_name: {
'enable': salix_extra_repo, 'enable': salix_extra_repo,
'path': salix_extra_repo_path, 'path': salix_extra_repo_path,
'mirror_packages': salix_extra_repo_mirror_packages, 'mirror_packages': salix_extra_repo_mirror,
'mirror_changelog': salix_extra_repo_mirror_changelog, 'mirror_changelog': salix_extra_repo_mirror,
'packages_txt': salix_extra_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': salix_extra_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': salix_extra_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': salix_extra_repo_tag}, 'repo_tag': salix_extra_repo_tag},
slackel_repo_name: { slackel_repo_name: {
'enable': slackel_repo, 'enable': slackel_repo,
'path': slackel_repo_path, 'path': slackel_repo_path,
'mirror_packages': slackel_repo_mirror_packages, 'mirror_packages': slackel_repo_mirror,
'mirror_changelog': slackel_repo_mirror_changelog, 'mirror_changelog': slackel_repo_mirror,
'packages_txt': slackel_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slackel_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slackel_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slackel_repo_tag}, 'repo_tag': slackel_repo_tag},
slint_repo_name: { slint_repo_name: {
'enable': slint_repo, 'enable': slint_repo,
'path': slint_repo_path, 'path': slint_repo_path,
'mirror_packages': slint_repo_mirror_packages, 'mirror_packages': slint_repo_mirror,
'mirror_changelog': slint_repo_mirror_changelog, 'mirror_changelog': slint_repo_mirror,
'packages_txt': slint_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': slint_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': slint_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': slint_repo_tag}, 'repo_tag': slint_repo_tag},
pprkut_repo_name: { pprkut_repo_name: {
'enable': pprkut_repo, 'enable': pprkut_repo,
'path': pprkut_repo_path, 'path': pprkut_repo_path,
'mirror_packages': pprkut_repo_mirror_packages, 'mirror_packages': pprkut_repo_mirror,
'mirror_changelog': pprkut_repo_mirror_changelog, 'mirror_changelog': pprkut_repo_mirror,
'packages_txt': pprkut_repo_packages, 'packages_txt': packages_txt,
'checksums_md5': pprkut_repo_checksums, 'checksums_md5': checksums_md5,
'changelog_txt': pprkut_repo_changelog, 'changelog_txt': changelog_txt,
'repo_tag': pprkut_repo_tag} 'repo_tag': pprkut_repo_tag}
} }
@ -581,10 +455,13 @@ class Repositories:
if diff_repos: if diff_repos:
for repo, config in repos_config.items(): for repo, config in repos_config.items():
if repo in diff_repos: if repo in diff_repos:
changelog_mirror: str = config['mirror'] changelog_mirror: str = config['mirror']
if config['changelog']:
changelog_mirror: str = config['changelog'] if config['branch']:
changelog_mirror: str = config['branch']
values = { values = {
'enable': config['enable'], 'enable': config['enable'],
'path': Path(repositories_path, repo), 'path': Path(repositories_path, repo),

View file

@ -79,7 +79,7 @@ class UpdateRepositories(Configs):
self.download.download(urls) self.download.download(urls)
self.data.install_data(repo) self.data.install_binary_data(repo)
def update_slackbuild_repos(self, repo: str) -> None: def update_slackbuild_repos(self, repo: str) -> None:
""" Updates the slackbuild repositories. """ """ Updates the slackbuild repositories. """
@ -100,9 +100,4 @@ class UpdateRepositories(Configs):
self.generate.slackbuild_file(self.repos.repositories[repo]['path'], self.generate.slackbuild_file(self.repos.repositories[repo]['path'],
self.repos.repositories[repo]['slackbuilds_txt']) self.repos.repositories[repo]['slackbuilds_txt'])
install: dict = { self.data.install_sbo_data(repo)
self.repos.sbo_repo_name: self.data.install_sbo_data,
self.repos.ponce_repo_name: self.data.install_ponce_data
}
install[repo]()