From 065e277f7b3c36b9da16d03962510feeda5a5d7a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 3 Mar 2013 00:12:25 -0800 Subject: [PATCH] repoman: skip doctype check for python 2.6 or 3.1 --- bin/repoman | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, -- 2.26.2