mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-10 01:18:03 +03:00
urldetect: Fix some pylint
This commit is contained in:
parent
3fd538ba0f
commit
65b33a1377
@ -474,7 +474,6 @@ class RHELDistro(RedHatDistro):
|
|||||||
return
|
return
|
||||||
|
|
||||||
version, update = self.cache.split_version()
|
version, update = self.cache.split_version()
|
||||||
self._version_number = version
|
|
||||||
|
|
||||||
# start with example base=rhel7, then walk backwards
|
# start with example base=rhel7, then walk backwards
|
||||||
# through the OS list to find the latest os name that matches
|
# through the OS list to find the latest os name that matches
|
||||||
@ -503,6 +502,8 @@ class SuseDistro(Distro):
|
|||||||
PRETTY_NAME = None
|
PRETTY_NAME = None
|
||||||
_suse_regex = []
|
_suse_regex = []
|
||||||
urldistro = None
|
urldistro = None
|
||||||
|
_variant_prefix = NotImplementedError
|
||||||
|
famregex = NotImplementedError
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_valid(cls, cache):
|
def is_valid(cls, cache):
|
||||||
@ -616,8 +617,6 @@ class SuseDistro(Distro):
|
|||||||
return "opensusetumbleweed"
|
return "opensusetumbleweed"
|
||||||
|
|
||||||
version, update = self.cache.split_version()
|
version, update = self.cache.split_version()
|
||||||
self._version_number = version
|
|
||||||
|
|
||||||
base = self._variant_prefix + str(version)
|
base = self._variant_prefix + str(version)
|
||||||
while update >= 0:
|
while update >= 0:
|
||||||
tryvar = base
|
tryvar = base
|
||||||
|
Loading…
Reference in New Issue
Block a user