urlfetcher: Fix detection of latest SL 6

They changes the treeinfo family to just be 'Scientific'
This commit is contained in:
Cole Robinson 2016-03-24 15:53:51 -04:00
parent 1c7a91385d
commit 351e6b9562

View File

@ -375,6 +375,7 @@ def _grabTreeinfo(fetcher):
logging.debug("Did not find 'family' section in treeinfo") logging.debug("Did not find 'family' section in treeinfo")
return None return None
logging.debug("treeinfo family=%s", treeinfo.get("general", "family"))
return treeinfo return treeinfo
@ -933,7 +934,7 @@ class SLDistro(RHELDistro):
def isValidStore(self): def isValidStore(self):
if self.treeinfo: if self.treeinfo:
m = re.match(".*Scientific Linux.*", m = re.match(".*Scientific.*",
self.treeinfo.get("general", "family")) self.treeinfo.get("general", "family"))
ret = (m is not None) ret = (m is not None)