mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
Line numbers start at 1, not 0
This commit is contained in:
parent
bb2598d358
commit
6cc91e2ded
@ -1602,7 +1602,7 @@ def scan_source(build_dir, root_dir, thisbuild):
|
|||||||
continue
|
continue
|
||||||
for i, line in enumerate(file(fp)):
|
for i, line in enumerate(file(fp)):
|
||||||
if any(suspect.match(line) for suspect in usual_suspects):
|
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
|
break
|
||||||
|
|
||||||
for p in scanignore:
|
for p in scanignore:
|
||||||
|
Loading…
Reference in New Issue
Block a user