Removed slackpkg support

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-12 21:03:11 +03:00
parent 860bacc627
commit 058639e0de
4 changed files with 0 additions and 24 deletions

View file

@ -4,7 +4,6 @@
- Added: - Added:
* Inform message for invalid package version with the upgrade command * Inform message for invalid package version with the upgrade command
* Config to update the slackpkg ChangeLog.txt file
### 5.0.8 - 10/05/2024 ### 5.0.8 - 10/05/2024

View file

@ -52,11 +52,6 @@ ASK_QUESTION = true
# Default is true. [true/false]. # Default is true. [true/false].
KERNEL_VERSION = true 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] # Download sources in parallel. Default is false. [true/false]
# Alternatively, you can use the option '--parallel'. # Alternatively, you can use the option '--parallel'.
PARALLEL_DOWNLOADS = false PARALLEL_DOWNLOADS = false

View file

@ -39,7 +39,6 @@ class Configs: # pylint: disable=[R0902]
reinstall: str = 'upgradepkg --reinstall' reinstall: str = 'upgradepkg --reinstall'
removepkg: str = 'removepkg' removepkg: str = 'removepkg'
kernel_version: str = True kernel_version: str = True
slackpkg_changelog: str = False
colors: bool = True colors: bool = True
makeflags: str = '-j4' makeflags: str = '-j4'
gpg_verification: bool = False gpg_verification: bool = False
@ -86,7 +85,6 @@ class Configs: # pylint: disable=[R0902]
reinstall: str = config['reinstall'] reinstall: str = config['reinstall']
removepkg: str = config['removepkg'] removepkg: str = config['removepkg']
kernel_version: str = config['kernel_version'] kernel_version: str = config['kernel_version']
slackpkg_changelog: str = config['slackpkg_changelog']
colors: bool = config['colors'] colors: bool = config['colors']
makeflags: str = config['makeflags'] makeflags: str = config['makeflags']
gpg_verification: bool = config['gpg_verification'] gpg_verification: bool = config['gpg_verification']

View file

@ -3,8 +3,6 @@
import re import re
import shutil
import filecmp
import subprocess import subprocess
from pathlib import Path 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") 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: def update_binary_repos(self, repo: str) -> None:
"""Updates the binary repositories. """Updates the binary repositories.
@ -155,9 +142,6 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
self.data.install_binary_data(repo) 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: def update_slackbuild_repos(self, repo: str) -> None:
"""Updates the slackbuild repositories. """Updates the slackbuild repositories.