Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 150552 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.54 KB, created by
michael@smith-li.com
on 2008-04-22 01:38:38 UTC
(
hide
)
Description:
glsa_separate_count.diff
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2008-04-22 01:38:38 UTC
Size:
1.54 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 >+ self.count = 1 >+ > # now the optional and 0-n toplevel, #PCDATA tags and references > try: > self.access = getText(myroot.getElementsByTagName("access")[0], format="strip") >@@ -539,7 +551,7 @@ > outstream.write((width*"=")+"\n") > outstream.write(wrap(self.synopsis, width, caption="Synopsis: ")+"\n") > outstream.write("Announced on: %s\n" % self.announced) >- outstream.write("Last revised on: %s\n\n" % self.revised) >+ outstream.write("Last revised on: %s %02d\n\n" % (self.revised, self.count)) > if self.glsatype == "ebuild": > for k in self.packages.keys(): > pkg = self.packages[k]
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