Fixed updates some packages to the same version #169

This commit is contained in:
Dimitris Zlatanidis 2023-05-23 19:37:03 +03:00
parent 40e08386d3
commit b68b1a0ef0
2 changed files with 6 additions and 0 deletions

View file

@ -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:

View file

@ -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}'