mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Removed slackpkg support
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
860bacc627
commit
058639e0de
4 changed files with 0 additions and 24 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue