mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for downgrade
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
2f798e8cf2
commit
6d49af69f1
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
* Updated message for invalid package version
|
* Updated message for invalid package version
|
||||||
* Updated upgrade.log file to json format
|
* Updated upgrade.log file to json format
|
||||||
* Separation of the process bar with progress bar
|
* Separation of the process bar with progress bar
|
||||||
|
* Updated to check downgrade packages (Thanks to marav)
|
||||||
|
|
||||||
### 5.0.9 - 23/05/2024
|
### 5.0.9 - 23/05/2024
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,9 @@ class Upgrade(Configs): # pylint: disable=[R0902]
|
||||||
|
|
||||||
if parse(repo_version) == parse(inst_version) and int(repo_build) > int(inst_build):
|
if parse(repo_version) == parse(inst_version) and int(repo_build) > int(inst_build):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
if parse(repo_version) < parse(inst_version):
|
||||||
|
return True
|
||||||
except InvalidVersion as err:
|
except InvalidVersion as err:
|
||||||
if repo_version > inst_version: # Try to compare the strings.
|
if repo_version > inst_version: # Try to compare the strings.
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue