projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7509930
)
repoman: skip doctype check for python 2.6 or 3.1
author
Zac Medico
<zmedico@gentoo.org>
Sun, 3 Mar 2013 08:12:25 +0000
(
00:12
-0800)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 3 Mar 2013 08:12:25 +0000
(
00:12
-0800)
bin/repoman
patch
|
blob
|
history
diff --git
a/bin/repoman
b/bin/repoman
index 5c58bea69720cb446eec455bff39568a91c18289..5618cf198ed6179771d072f528861b6f944533cc 100755
(executable)
--- 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,