mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
AttributeError: LooseVersion instance has no attribute 'version'
This commit is contained in:
parent
38c6d9825b
commit
bb35f92416
2 changed files with 4 additions and 0 deletions
|
@ -223,6 +223,8 @@ class BinaryInstall(object):
|
||||||
name = split_package(package)[0]
|
name = split_package(package)[0]
|
||||||
rep_ver = split_package(package)[1]
|
rep_ver = split_package(package)[1]
|
||||||
ins_ver = GetFromInstalled(name).version()[1:]
|
ins_ver = GetFromInstalled(name).version()[1:]
|
||||||
|
if not ins_ver:
|
||||||
|
ins_ver = "0"
|
||||||
if LooseVersion(rep_ver) < LooseVersion(ins_ver):
|
if LooseVersion(rep_ver) < LooseVersion(ins_ver):
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
print("| Package {0} don't downgrade, "
|
print("| Package {0} don't downgrade, "
|
||||||
|
|
|
@ -359,6 +359,8 @@ class SBoInstall(object):
|
||||||
name = "-".join(prgnam.split("-")[:-1])
|
name = "-".join(prgnam.split("-")[:-1])
|
||||||
sbo_ver = prgnam.split("-")[-1]
|
sbo_ver = prgnam.split("-")[-1]
|
||||||
ins_ver = GetFromInstalled(name).version()[1:]
|
ins_ver = GetFromInstalled(name).version()[1:]
|
||||||
|
if not ins_ver:
|
||||||
|
ins_ver = "0"
|
||||||
if LooseVersion(sbo_ver) < LooseVersion(ins_ver):
|
if LooseVersion(sbo_ver) < LooseVersion(ins_ver):
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
print("| Package {0} don't downgrade, "
|
print("| Package {0} don't downgrade, "
|
||||||
|
|
Loading…
Add table
Reference in a new issue