From 6cc91e2dede57d29ff355bef5794b6c89109ad65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 14 Aug 2015 10:30:27 -0700 Subject: [PATCH] Line numbers start at 1, not 0 --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index e775e846..2f18f7f5 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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: