diff options
author | Raphael Geissert <geissert@debian.org> | 2009-12-18 05:06:26 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2009-12-18 05:06:26 +0000 |
commit | 99998df3a65e82ab4f722e3adc3b915da498f540 (patch) | |
tree | 1e608fcc2360b28084c36ffda35b9b703339721b /scripts | |
parent | 3de40ed4e03cc3d0757861d7322573cd9a4da9e8 (diff) |
support searches involving regular expressions
git-svn-id: svn+ssh://svn.debian.org/svn/kernel-sec@1656 e094ebfe-e918-0410-adfb-c712417f3574
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find-commit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/find-commit b/scripts/find-commit index b89b945f..1387e131 100755 --- a/scripts/find-commit +++ b/scripts/find-commit @@ -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 @@ while pline: 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() |