From 058639e0de90019c2e307793b38d7cc98b1e1aed Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 12 May 2024 21:03:11 +0300 Subject: [PATCH] Removed slackpkg support Signed-off-by: Dimitris Zlatanidis --- ChangeLog.txt | 1 - configs/slpkg.toml | 5 ----- slpkg/configs.py | 2 -- slpkg/update_repositories.py | 16 ---------------- 4 files changed, 24 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 09549c5e..06de595b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -4,7 +4,6 @@ - Added: * Inform message for invalid package version with the upgrade command - * Config to update the slackpkg ChangeLog.txt file ### 5.0.8 - 10/05/2024 diff --git a/configs/slpkg.toml b/configs/slpkg.toml index 389dbc08..09dedafa 100644 --- a/configs/slpkg.toml +++ b/configs/slpkg.toml @@ -52,11 +52,6 @@ ASK_QUESTION = true # Default is true. [true/false]. KERNEL_VERSION = true -# Updates the slackpkg ChangeLog.txt after update the slack repository. -# Useful for some applications like SUN (Slackware Update Notifier). -# https://dslackw.gitlab.io/sun/ -SLACKPKG_CHANGELOG = false - # Download sources in parallel. Default is false. [true/false] # Alternatively, you can use the option '--parallel'. PARALLEL_DOWNLOADS = false diff --git a/slpkg/configs.py b/slpkg/configs.py index e15773d7..bae1190d 100644 --- a/slpkg/configs.py +++ b/slpkg/configs.py @@ -39,7 +39,6 @@ class Configs: # pylint: disable=[R0902] reinstall: str = 'upgradepkg --reinstall' removepkg: str = 'removepkg' kernel_version: str = True - slackpkg_changelog: str = False colors: bool = True makeflags: str = '-j4' gpg_verification: bool = False @@ -86,7 +85,6 @@ class Configs: # pylint: disable=[R0902] reinstall: str = config['reinstall'] removepkg: str = config['removepkg'] kernel_version: str = config['kernel_version'] - slackpkg_changelog: str = config['slackpkg_changelog'] colors: bool = config['colors'] makeflags: str = config['makeflags'] gpg_verification: bool = config['gpg_verification'] diff --git a/slpkg/update_repositories.py b/slpkg/update_repositories.py index 6f5beb6e..cdb102b1 100644 --- a/slpkg/update_repositories.py +++ b/slpkg/update_repositories.py @@ -3,8 +3,6 @@ import re -import shutil -import filecmp import subprocess from pathlib import Path @@ -112,17 +110,6 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] """ print(f"Syncing with the repository '{self.green}{repo}{self.endc}', please wait...\n") - def slackpkg_changelog_update(self) -> None: - """ Updates the slackpkg ChangeLog.txt file. - """ - if self.slackpkg_changelog: - slackpkg_changelog_path: Path = Path('/var/lib/slackpkg') - slackpkg_changelog_file: Path = Path(slackpkg_changelog_path, self.repos.changelog_txt) - slpkg_changelog_file: Path = Path(self.repos.slack_repo_path, self.repos.changelog_txt) - if slackpkg_changelog_path.is_dir(): - if not filecmp.cmp(slackpkg_changelog_file, slpkg_changelog_file): - shutil.copy(slpkg_changelog_file, slackpkg_changelog_file) - def update_binary_repos(self, repo: str) -> None: """Updates the binary repositories. @@ -155,9 +142,6 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902] self.data.install_binary_data(repo) - if repo == self.repos.slack_repo_name: - self.slackpkg_changelog_update() - def update_slackbuild_repos(self, repo: str) -> None: """Updates the slackbuild repositories.