aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-07 21:50:42 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-07 21:50:42 +0000
commit3a9a3d157704ffb142098f8d6db61c4bb0c92e5d (patch)
tree17480e4df31e894384a9cc4c7f1d35cef63466ab
parentAdd patch from Robert Buchholz: Respect count attribute in GLSA-2, based on a... (diff)
downloadgentoolkit-3a9a3d157704ffb142098f8d6db61c4bb0c92e5d.tar.gz
gentoolkit-3a9a3d157704ffb142098f8d6db61c4bb0c92e5d.tar.bz2
gentoolkit-3a9a3d157704ffb142098f8d6db61c4bb0c92e5d.zip
Add patch from Robert Buchholz: Allow GLSA 2 DTD in doctype declaration
svn path=/branches/gentoolkit-0.2.4/; revision=622
-rw-r--r--src/glsa-check/glsa.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glsa-check/glsa.py b/src/glsa-check/glsa.py
index ffe6594..0931908 100644
--- a/src/glsa-check/glsa.py
+++ b/src/glsa-check/glsa.py
@@ -470,7 +470,11 @@ class Glsa:
self.DOM = xml.dom.minidom.parse(myfile)
if not self.DOM.doctype:
raise GlsaTypeException(None)
- elif self.DOM.doctype.systemId != "http://www.gentoo.org/dtd/glsa.dtd":
+ elif self.DOM.doctype.systemId == "http://www.gentoo.org/dtd/glsa.dtd":
+ self.dtdversion = 0
+ elif self.DOM.doctype.systemId == "http://www.gentoo.org/dtd/glsa-2.dtd":
+ self.dtdversion = 2
+ else:
raise GlsaTypeException(self.DOM.doctype.systemId)
myroot = self.DOM.getElementsByTagName("glsa")[0]
if self.type == "id" and myroot.getAttribute("id") != self.nr: