[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 02/04: lib/Lintian/Collect/Package.pm: Simplify date portion parsing.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit a455026d0f71ceb433023fca85e8ea0cdc27ab3c
Author: Chris Lamb <lamby@debian.org>
Date:   Mon Apr 9 08:50:09 2018 +0100

    lib/Lintian/Collect/Package.pm: Simplify date portion parsing.
---
 lib/Lintian/Collect/Package.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index 2f9c46c..713a93b 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -445,7 +445,7 @@ sub _fetch_index_data {
         # "fake" dates.
         ($perm,$ownership,$size,$date,$time,$name)
           = $line
-          =~ /^([-drwx]{10}) (.*?) (\d+) (\d{4}-\d\d-\d\d) ([:\d]{5,8}) (.*)$/;
+          =~ /^([-drwx]{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: