From 351e6b9562bf06ccad19dc845b92f0f3ed6c2fcb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 24 Mar 2016 15:53:51 -0400 Subject: [PATCH] urlfetcher: Fix detection of latest SL 6 They changes the treeinfo family to just be 'Scientific' --- virtinst/urlfetcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py index f45cb1f39..a99e083e3 100644 --- a/virtinst/urlfetcher.py +++ b/virtinst/urlfetcher.py @@ -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)