[lintian] 01/01: Don't warn if debian/patches is a symlink to a file either. Thanks Niels!
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 530c5878a1c2198d79d35e8eafebbc9c8e6d91ec
Author: Chris Lamb <lamby@debian.org>
Date: Sun Feb 4 09:45:08 2018 +0000
Don't warn if debian/patches is a symlink to a file either. Thanks Niels!
---
checks/patch-systems.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/checks/patch-systems.pm b/checks/patch-systems.pm
index d73a653..11f9185 100644
--- a/checks/patch-systems.pm
+++ b/checks/patch-systems.pm
@@ -47,14 +47,13 @@ sub run {
my $droot = $info->index_resolved_path('debian/');
return if not $droot;
my $dpdir = $droot->resolve_path('patches');
- my $resolved;
my $patch_series;
my %known_files;
# Find debian/patches/series, assuming debian/patches is a (symlink to a)
# dir. There are cases, where it is a file (ctwm: #778556)
if ($dpdir and ($dpdir->is_dir or $dpdir->is_symlink)) {
- $resolved = $dpdir->resolve_path;
+ my $resolved = $dpdir->resolve_path;
$patch_series = $resolved->resolve_path('series') if $resolved->is_dir;
}
@@ -228,7 +227,7 @@ sub run {
}
#----- look for unreferenced files in debian/patches
- if ($resolved and $format ne '2.0') {
+ if ($dpdir->is_dir and $format ne '2.0') {
# Check all series files, including $vendor.series
foreach my $file ($dpdir->children) {
next unless $file =~ /\/(.+\.)?series$/;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: