mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for an invalid version
This commit is contained in:
parent
d0c4852135
commit
e94cd3a5d5
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from typing import Generator
|
||||
from packaging.version import parse
|
||||
from packaging.version import parse, InvalidVersion
|
||||
from pathlib import Path
|
||||
|
||||
from slpkg.configs import Configs
|
||||
|
@ -73,7 +73,7 @@ class Upgrade(Configs):
|
|||
if parse(repo_version) == parse(inst_version):
|
||||
if int(repo_build) > int(inst_build):
|
||||
return True
|
||||
except ValueError:
|
||||
except InvalidVersion:
|
||||
return False
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue