mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
urlfetcher: Fix detection of latest SL 6
They changes the treeinfo family to just be 'Scientific'
This commit is contained in:
parent
1c7a91385d
commit
351e6b9562
@ -375,6 +375,7 @@ def _grabTreeinfo(fetcher):
|
||||
logging.debug("Did not find 'family' section in treeinfo")
|
||||
return None
|
||||
|
||||
logging.debug("treeinfo family=%s", treeinfo.get("general", "family"))
|
||||
return treeinfo
|
||||
|
||||
|
||||
@ -933,7 +934,7 @@ class SLDistro(RHELDistro):
|
||||
|
||||
def isValidStore(self):
|
||||
if self.treeinfo:
|
||||
m = re.match(".*Scientific Linux.*",
|
||||
m = re.match(".*Scientific.*",
|
||||
self.treeinfo.get("general", "family"))
|
||||
ret = (m is not None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user