diff options
| author | Aaron Bauman <bman@gentoo.org> | 2017-01-20 15:50:54 +0900 |
|---|---|---|
| committer | Aaron Bauman <bman@gentoo.org> | 2017-01-20 15:50:54 +0900 |
| commit | 8aed03d3c4170943568ff1446574f21e0c7396d7 (patch) | |
| tree | 12b012d02e027128210b419f5e397f543b5dda02 /pym | |
| parent | d84910d914c5efb5aeb6e0f25286e3e3c34172f6 (diff) | |
| download | gentoolkit-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__.py | 4 |
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: |
