[kernel-sec-discuss] r1656 - scripts

Michael Gilbert gilbert-guest at alioth.debian.org
Fri Dec 18 05:06:27 UTC 2009


Author: gilbert-guest
Date: 2009-12-18 05:06:26 +0000 (Fri, 18 Dec 2009)
New Revision: 1656

Modified:
   scripts/find-commit
Log:
support searches involving regular expressions

Modified: scripts/find-commit
===================================================================
--- scripts/find-commit	2009-12-18 04:57:39 UTC (rev 1655)
+++ scripts/find-commit	2009-12-18 05:06:26 UTC (rev 1656)
@@ -18,6 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import os
+import re
 import sys
 import urllib
 import tempfile
@@ -119,7 +120,7 @@
 	        commit = '| %s' % line
             else:
 	        commit += '| %s' % line
-            if ( line.find( sys.argv[1] ) >= 0 ):
+            if re.search( sys.argv[1] , line ):
                 foundtext = True
 	    line = fread.readline()
         fread.close()




More information about the kernel-sec-discuss mailing list