From aa0cf0c993759f559988c8d0d6ea50be8cf716ce Mon Sep 17 00:00:00 2001 From: Aaron Bauman Date: Fri, 20 Jan 2017 15:50:54 +0900 Subject: 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 --- pym/portage/glsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/glsa.py') 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: # 2007-12-30 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: -- cgit v1.2.3-65-gdbad