[lintian] 01/03: c/infofiles: Correct a ->name to a ->basename
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 96f248540d921f0a5d06501ba53d57725b5e39eb
Author: Niels Thykier <niels@thykier.net>
Date: Sat Oct 22 10:50:38 2016 +0000
c/infofiles: Correct a ->name to a ->basename
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/infofiles.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/infofiles.pm b/checks/infofiles.pm
index 1825f70..03d32c7 100644
--- a/checks/infofiles.pm
+++ b/checks/infofiles.pm
@@ -37,7 +37,7 @@ sub run {
foreach my $file ($info_dir->children('breadth-first')) {
# NB: file_info can be undef (e.g. symlinks)
my $file_info = $file->file_info // '';
- my $fname = $file->name;
+ my $fname = $file->basename;
next unless $file->is_symlink or $file->is_file;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: