SVN: security/cve_reader.py

megabajt megabajt at pld-linux.org
Thu Apr 26 23:32:12 CEST 2012


Author: megabajt
Date: Thu Apr 26 23:32:12 2012
New Revision: 12562

Modified:
   security/cve_reader.py
Log:
Stop processing on separator indicating new commit


Modified: security/cve_reader.py
==============================================================================
--- security/cve_reader.py	(original)
+++ security/cve_reader.py	Thu Apr 26 23:32:12 2012
@@ -74,7 +74,7 @@
 			# This is needed in cases when commit log is divided by diff range string
 			foundcveafterrange = 0
 			
-			while (i + cvslog < len(lines) and not re.match('^Index\:.*\.spec', lines[i + cvslog])):
+			while (i + cvslog < len(lines) and not re.match(r'^Index\:.*|^-----========== SEPARATOR =.*', lines[i + cvslog])):
 				if re.match('.*Revision.*', lines[i+cvslog]):
 					if len(cve) > 0:
 						# Check if parseSPEC has to be used


More information about the pld-cvs-commit mailing list