[lintian] 01/01: c/infofiles: Fix usage of undef variable
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 425f6d848686c285baf305fa1b6cf56051cb0ad1
Author: Niels Thykier <niels@thykier.net>
Date: Wed Jul 1 19:22:36 2015 +0200
c/infofiles: Fix usage of undef variable
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/infofiles.pm | 3 ++-
debian/changelog | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/checks/infofiles.pm b/checks/infofiles.pm
index 05e46d9..707c541 100644
--- a/checks/infofiles.pm
+++ b/checks/infofiles.pm
@@ -34,7 +34,8 @@ sub run {
# Read package contents...
foreach my $file ($info->sorted_index) {
- my $file_info = $file->file_info;
+ # NB: file_info can be undef (e.g. symlinks)
+ my $file_info = $file->file_info // '';
my ($fname, $path) = fileparse($file);
next
diff --git a/debian/changelog b/debian/changelog
index b364104..f1d6a51 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ lintian (2.5.33) UNRELEASED; urgency=medium
XXX: generate tag summary
+ * checks/infofiles.pm:
+ + [NT] Fix use of undefined variable in some cases.
* checks/systemd.{desc,pm}:
+ [NT] Apply patches from Felipe Sateler to refactor the
systemd checks. Notably this also fixes some duplicate
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: