Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 150469 Details for
Bug 218312
glsa-check should respect "count" attribute in revised
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glsa_separate_count.diff
glsa_separate_count.diff (text/plain), 1.14 KB, created by
michael@smith-li.com
on 2008-04-21 00:31:11 UTC
(
hide
)
Description:
glsa_separate_count.diff
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2008-04-21 00:31:11 UTC
Size:
1.14 KB
patch
obsolete
>Index: glsa.py >=================================================================== >--- glsa.py (revision 485) >+++ glsa.py (working copy) >@@ -482,8 +482,20 @@ > self.title = getText(myroot.getElementsByTagName("title")[0], format="strip") > self.synopsis = getText(myroot.getElementsByTagName("synopsis")[0], format="strip") > self.announced = getText(myroot.getElementsByTagName("announced")[0], format="strip") >- self.revised = getText(myroot.getElementsByTagName("revised")[0], format="strip") > >+ >+ # Support both formats of revised: >+ # <revised>December 30, 2007: 02</revised> >+ # <revised count="2">2007-12-30</revised> >+ revisedEl = myroot.getElementsByTagName("revised")[0] >+ self.revised = getText(revisedEl, format="strip") >+ if ("count" in revisedEl.attributes): >+ self.count = getText(revisedEl.getAttribute("count")) >+ elif (self.revised.find(":") >= 0): >+ (self.revised, self.count) = self.revised.split(":") >+ # else >+ # No count found, not sure how to handle... >+ > # now the optional and 0-n toplevel, #PCDATA tags and references > try: > self.access = getText(myroot.getElementsByTagName("access")[0], format="strip")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218312
:
150469
|
150552