public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r11589 - main/trunk/pym/portage
@ 2008-09-28 18:41 Marius Mauch (genone)
  0 siblings, 0 replies; only message in thread
From: Marius Mauch (genone) @ 2008-09-28 18:41 UTC (permalink / raw
  To: gentoo-commits

Author: genone
Date: 2008-09-28 18:41:56 +0000 (Sun, 28 Sep 2008)
New Revision: 11589

Modified:
   main/trunk/pym/portage/glsa.py
Log:
also accept glsa-2.dtd as valid for GLSAs (patch by Robert Buchholz <rbu@gentoo.org>)

Modified: main/trunk/pym/portage/glsa.py
===================================================================
--- main/trunk/pym/portage/glsa.py	2008-09-28 18:39:44 UTC (rev 11588)
+++ main/trunk/pym/portage/glsa.py	2008-09-28 18:41:56 UTC (rev 11589)
@@ -432,7 +432,11 @@
 		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:




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-28 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 18:41 [gentoo-commits] portage r11589 - main/trunk/pym/portage Marius Mauch (genone)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox