1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Line numbers start at 1, not 0

This commit is contained in:
Daniel Martí 2015-08-14 10:30:27 -07:00
parent bb2598d358
commit 6cc91e2ded

View File

@ -1602,7 +1602,7 @@ def scan_source(build_dir, root_dir, thisbuild):
continue
for i, line in enumerate(file(fp)):
if any(suspect.match(line) for suspect in usual_suspects):
count += handleproblem('usual suspect at line %d' % i, fd, fp)
count += handleproblem('usual suspect at line %d' % i+1, fd, fp)
break
for p in scanignore: