summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2017-01-20 15:50:54 +0900
committerAaron Bauman <bman@gentoo.org>2017-01-20 15:50:54 +0900
commit8aed03d3c4170943568ff1446574f21e0c7396d7 (patch)
tree12b012d02e027128210b419f5e397f543b5dda02 /pym
parentd84910d914c5efb5aeb6e0f25286e3e3c34172f6 (diff)
downloadgentoolkit-8aed03d3c4170943568ff1446574f21e0c7396d7.tar.gz
Properly retrieve the count attribute and adjust logic to properly support both GLSA formats
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/glsa/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/glsa/__init__.py b/pym/gentoolkit/glsa/__init__.py
index ba1eed7..03e685c 100644
--- a/pym/gentoolkit/glsa/__init__.py
+++ b/pym/gentoolkit/glsa/__init__.py
@@ -561,8 +561,8 @@ class Glsa:
# <revised count="2">2007-12-30</revised>
revisedEl = myroot.getElementsByTagName("revised")[0]
self.revised = getText(revisedEl, format="strip")
- count = revisedEl.attributes.get("count")
- if count is None:
+ count = revisedEl.getAttribute("count")
+ if not count:
if self.revised.find(":") >= 0:
(self.revised, count) = self.revised.split(":")
else: