[lintian] 04/05: application-not-library: Use the 2-argument form of $info->field to get a default value if unset
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch ppt-lc-mover
in repository lintian.
commit a082ffda56ff64694057f2f0fa5ebc0c82d7c38d
Author: Axel Beckert <abe@deuxchevaux.org>
Date: Tue Aug 11 16:11:51 2015 +0200
application-not-library: Use the 2-argument form of $info->field to get a default value if unset
Suggested by nthykier.
---
checks/application-not-library.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/application-not-library.pm b/checks/application-not-library.pm
index 9bedd6c..6dddd2d 100644
--- a/checks/application-not-library.pm
+++ b/checks/application-not-library.pm
@@ -71,7 +71,7 @@ sub run {
}
# Check for wrong section
- my $section = $info->field('section');
+ my $section = $info->field('section', '');
if ($section =~ /perl|python|ruby|^libs/) { # oldlibs is ok
tag('application-in-library-section', "$section", @programs);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: