aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2017-01-20 15:50:54 +0900
committerZac Medico <zmedico@gentoo.org>2017-01-19 23:26:52 -0800
commitaa0cf0c993759f559988c8d0d6ea50be8cf716ce (patch)
treefe1b7e308c69650acef8d0860db4c05bbf8a51bd /pym/portage/glsa.py
parentemaint: add more meaningful error messages to the logs module (diff)
downloadportage-aa0cf0c993759f559988c8d0d6ea50be8cf716ce.tar.gz
portage-aa0cf0c993759f559988c8d0d6ea50be8cf716ce.tar.bz2
portage-aa0cf0c993759f559988c8d0d6ea50be8cf716ce.zip
Properly retrieve the count attribute and adjust logic to properly support both GLSA formats
X-Gentoo-Bug: 605612 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=605612
Diffstat (limited to 'pym/portage/glsa.py')
-rw-r--r--pym/portage/glsa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/glsa.py b/pym/portage/glsa.py
index 5e6662d10..ea3819bc4 100644
--- a/pym/portage/glsa.py
+++ b/pym/portage/glsa.py
@@ -533,8 +533,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: