[lintian] 01/03: Correct parsing of "jobs=42" in lintianrc. If specified, it would be coerced to a boolean resulting in a value of 1.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit c8678e189ebd5795f36a268abe1be183a60e01f6
Author: Chris Lamb <lamby@debian.org>
Date: Sun Dec 10 09:20:49 2017 +0000
Correct parsing of "jobs=42" in lintianrc. If specified, it would be coerced to a boolean resulting in a value of 1.
---
commands/lintian.pm | 6 ++++--
debian/changelog | 4 ++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/commands/lintian.pm b/commands/lintian.pm
index ce4f47a..ed5fd6d 100755
--- a/commands/lintian.pm
+++ b/commands/lintian.pm
@@ -31,7 +31,7 @@ use utf8;
use Cwd qw(abs_path);
use Getopt::Long();
-use List::MoreUtils qw(any);
+use List::MoreUtils qw(any none);
use POSIX qw(:sys_wait_h);
use Time::HiRes qw(gettimeofday tv_interval);
@@ -1296,7 +1296,9 @@ sub parse_config_file {
# Translate boolean strings to "0" or "1"; ignore
# errors as not all values are (intended to be)
# booleans.
- eval { $val = parse_boolean($val); };
+ if (none { $var eq $_ } qw(jobs)) {
+ eval { $val = parse_boolean($val); };
+ }
if (ref $ref eq 'SCALAR'){
# Check it was already set
next if defined $$ref;
diff --git a/debian/changelog b/debian/changelog
index be8626b..092e062 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,10 @@ lintian (2.5.63) UNRELEASED; urgency=medium
executable so such files are useless for cross builds.
(Closes: #794295)
+ * commands/lintian.pm:
+ + [CL] Correct parsing of "jobs=42" in lintianrc. If specified, it would
+ be coerced to a boolean resulting in a value of 1.
+
-- Chris Lamb <lamby@debian.org> Thu, 07 Dec 2017 16:51:09 +0000
lintian (2.5.62) unstable; urgency=medium
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: