Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126339 - Improve GLSA bot to update GLSAs which have been edited
Summary: Improve GLSA bot to update GLSAs which have been edited
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Forums (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Forum Moderators
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 12:52 UTC by Tom Knight (RETIRED)
Modified: 2006-05-07 10:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Knight (RETIRED) gentoo-dev 2006-03-15 12:52:00 UTC
At the moment if a GLSA is edited after it's been posted to the forums then these changes won't get picked up. There should be a periodic process that checks for new revisions of GLSAs, if one is found it should replace the current post for that GLSA with the new one.

For this we'd need a new table to store the GLSA id, post id, revision number and revision date. It should check all GLSAs since the first one added in the new format for new revisions and replace the text in that post with the new text.
Comment 1 Tom Knight (RETIRED) gentoo-dev 2006-04-06 11:07:01 UTC
The <revised> tag isn't always updated for minor changes to a GLSA, for this reason another method is needed to check if the GLSA has changed. Seeing as it's not possible within the current framework to check the CVS revision number then and md5sum of the file should be stored in the new table. This does mean that the md5sums will need to be generated each time that the script runs, but as the files in question are pretty small it doesn't take very long to perform.
Comment 2 Tom Knight (RETIRED) gentoo-dev 2006-05-07 10:22:30 UTC
The GLSA updater will run once a day to see if any of the GLSA's have changed, if they have then it'll edit the relevant post in the News & Announcements forum.