aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-03 02:52:01 -0500
committerB. Watson <urchlay@slackware.uk>2023-02-03 02:52:01 -0500
commit92f98a10b4b07885ce48556e94ae476c54057226 (patch)
tree65216d5dd28f6c549ed368e5b496cb72a99a86de /sbolint
parentf09f93c1d6fa9653c0734bb42b762dd29c46836a (diff)
downloadsbo-maintainer-tools-92f98a10b4b07885ce48556e94ae476c54057226.tar.gz
sbolint: report correct line number
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbolint b/sbolint
index d40a561..635e206 100755
--- a/sbolint
+++ b/sbolint
@@ -835,7 +835,6 @@ sub check_info {
return unless scalar @lines;
my $lineno = 0;
- my $file_lineno = 0;
my @expected = qw/PRGNAM VERSION HOMEPAGE
DOWNLOAD MD5SUM
DOWNLOAD_x86_64 MD5SUM_x86_64
@@ -848,14 +847,11 @@ sub check_info {
# parse and bitch about bad syntax...
for(@lines) {
- $file_lineno++;
+ $lineno++;
if($continuation) {
s/^\s*//;
$_ = "$continuation $_";
$continuation = 0;
- $lineno = $file_lineno - 1;
- } else {
- $lineno = $file_lineno;
}
if(s/\s*\\$//) {