mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Fixed updates some packages to the same version #169
This commit is contained in:
parent
40e08386d3
commit
b68b1a0ef0
2 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ Updated:
|
|||
- Load the database when used #172
|
||||
Fixed:
|
||||
- ValueError with search command
|
||||
- Updates some packages to the same version #169
|
||||
|
||||
4.8.5 - 18/05/2023
|
||||
Fixed:
|
||||
|
|
|
@ -58,6 +58,11 @@ class Upgrade(Configs):
|
|||
repo_package_build: str = self.utils.read_slackbuild_build_tag(
|
||||
name, repo_location, self.repository)
|
||||
|
||||
# Patches installed version to matching with repository package version.
|
||||
# It fixes installed package version, packages like nvidia-kernel and virtualbox-kernel
|
||||
# that contain the kernel version with package version.
|
||||
inst_package_version = f"{inst_package_version[:len(repo_package_version)]}"
|
||||
|
||||
repository_package: str = f'{name}-{repo_package_version}'
|
||||
installed_package: str = f'{name}-{inst_package_version}'
|
||||
|
||||
|
|
Loading…
Reference in a new issue