From: Zac Medico Date: Sun, 3 Mar 2013 08:12:25 +0000 (-0800) Subject: repoman: skip doctype check for python 2.6 or 3.1 X-Git-Tag: v2.2.0_alpha165~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=065e277f7b3c36b9da16d03962510feeda5a5d7a;p=portage.git repoman: skip doctype check for python 2.6 or 3.1 --- diff --git a/bin/repoman b/bin/repoman index 5c58bea69..5618cf198 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1658,7 +1658,11 @@ for x in effective_scanlist: fails["metadata.bad"].append("%s/metadata.xml: %s" % (x, e)) del e else: - if "DOCTYPE" not in xml_info: + if sys.hexversion < 0x2070000 or \ + (sys.hexversion > 0x3000000 and sys.hexversion < 0x3020000): + # doctype is not parsed with python 2.6 or 3.1 + pass + elif "DOCTYPE" not in xml_info: metadata_bad = True stats["metadata.bad"] += 1 fails["metadata.bad"].append("%s/metadata.xml: %s" % (x,