[lintian] 03/04: lib/Lintian/Collect/Package.pm: Also allow for links, etc. in permission field.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 00a4b17ed3519541b2c35e8ccd360e2665a65100
Author: Chris Lamb <lamby@debian.org>
Date: Mon Apr 9 08:50:44 2018 +0100
lib/Lintian/Collect/Package.pm: Also allow for links, etc. in permission field.
---
lib/Lintian/Collect/Package.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index 713a93b..48838d9 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -444,8 +444,7 @@ sub _fetch_index_data {
# Note this cannot ever be 100% reliable as the filename might contain
# "fake" dates.
($perm,$ownership,$size,$date,$time,$name)
- = $line
- =~ /^([-drwx]{10}) (.*?) (\d+) ([-\d]{10}) ([:\d]{5,8}) (.*)$/;
+ = $line=~ /^(.{10}) (.*?) (\d+) ([-\d]{10}) ([:\d]{5,8}) (.*)$/;
$ownership =~ s/\s+$//;
$file{'date_time'} = "${date} ${time}";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: