diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-03 02:52:01 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-02-03 02:52:01 -0500 |
commit | 92f98a10b4b07885ce48556e94ae476c54057226 (patch) | |
tree | 65216d5dd28f6c549ed368e5b496cb72a99a86de /sbolint | |
parent | f09f93c1d6fa9653c0734bb42b762dd29c46836a (diff) | |
download | sbo-maintainer-tools-92f98a10b4b07885ce48556e94ae476c54057226.tar.gz |
sbolint: report correct line number
Diffstat (limited to 'sbolint')
-rwxr-xr-x | sbolint | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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*\\$//) { |