SVN: security/cve_reader.py
megabajt
megabajt at pld-linux.org
Sat Oct 20 20:09:00 CEST 2007
Author: megabajt
Date: Sat Oct 20 20:09:00 2007
New Revision: 8833
Modified:
security/cve_reader.py
Log:
- more comments
Modified: security/cve_reader.py
==============================================================================
--- security/cve_reader.py (original)
+++ security/cve_reader.py Sat Oct 20 20:09:00 2007
@@ -110,6 +110,7 @@
fs.write(size[6])
fs.close()
+# adds new <package> into the XML tree
def addCVEnote(rootnode, spec, cve, revision, date):
res = getCVSentry(spec, revision)
@@ -155,6 +156,7 @@
# Huh, new entry is the youngest one
rootnode.insert(len(rootnode), package)
+# returns index (tag position) in the node which is a list
def getTagIndex(node, tag):
item = ""
@@ -203,7 +205,7 @@
def rsync():
os.system("rsync rsync://cvs.pld-linux.org/cvs/SPECS/commits.log .")
-#compares whether rev1 is greater than rev2 and returns 0 if true, 1 if false
+# compares whether rev1 is greater than rev2 and returns 0 if true, 1 if false
def compRevs(rev1, rev2):
rev1 = rev1.split(".")
rev2 = rev2.split(".")
@@ -227,6 +229,7 @@
break
return 0
+# returns value (text attribute) of package subnodes specified in taglist
def getPackageData(package, taglist):
pkg = {}
@@ -236,6 +239,7 @@
return pkg
+# generates new RSS file
def genRSSFeed(rootnode):
rssitem = []
More information about the pld-cvs-commit
mailing list