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

[lintian] 01/01: c/r-sync-state: Support reading .xz files



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

nthykier pushed a commit to branch master
in repository lintian.

commit d9cf3145ff422b03cc48d785b94c36c3cfa72be6
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Mar 16 07:02:25 2016 +0000

    c/r-sync-state: Support reading .xz files
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 commands/reporting-sync-state.pm | 5 +++++
 debian/changelog                 | 1 +
 2 files changed, 6 insertions(+)

diff --git a/commands/reporting-sync-state.pm b/commands/reporting-sync-state.pm
index aa04ae2..af3defc 100644
--- a/commands/reporting-sync-state.pm
+++ b/commands/reporting-sync-state.pm
@@ -441,6 +441,11 @@ sub _open_data_file {
         binmode($fd, 'encoding(UTF-8)');
         return $fd;
     }
+    if (-e "${file}.xz") {
+        open(my $fd, '-|', 'xz', '-dc', "${file}.xz");
+        binmode($fd, 'encoding(UTF-8)');
+        return $fd;
+    }
     die("Cannot find ${file}: file does not exist");
 }
 
diff --git a/debian/changelog b/debian/changelog
index fdbc4a7..cf748e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ lintian (2.5.43) UNRELEASED; urgency=medium
     + [NT] Use the sha256 instead of the sha1 checksum field
       for finding related files and checking which members
       have changed.
+    + [NT] Support reading Packages.xz and Sources.xz files.
 
   * frontend/dplint:
     + [NT] Put $LINTIAN_VERSION on its own line so the build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: