[lintian] 01/01: Avoid "Use of uninitialized value in pattern match..." warning when no Build-Depends field defined.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit c2ed0cc1168559d6b6e6f95877767c2ceb171387
Author: Chris Lamb <lamby@debian.org>
Date: Fri Aug 4 17:46:54 2017 -0400
Avoid "Use of uninitialized value in pattern match..." warning when no Build-Depends field defined.
---
checks/python.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/python.pm b/checks/python.pm
index c8cb441..ad0a10b 100644
--- a/checks/python.pm
+++ b/checks/python.pm
@@ -52,7 +52,7 @@ sub run {
and not $build_all->implies('python3-sphinx');
tag 'alternatively-build-depends-on-python-sphinx-and-python3-sphinx'
- if $info->field('build-depends')
+ if $info->field('build-depends', '')
=~ m,\bpython-sphinx\s+\|\s+python3-sphinx\b,g;
return;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: