Commit ac8a5070 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Strip the first line from the xz --list output.

parent 1e782e18
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -37,6 +37,12 @@ class XZList(Command):
    def cmdline(self):
        return ("xz", "--list", "--verbose", self.path)

    def filter(self, line):
        # Strip the first line
        if line.startswith(self.path.encode("utf-8")):
            return b""
        return line


class XzContainer(Archive):
    def open_archive(self):
+1 −3
Original line number Diff line number Diff line
@@ -1,14 +1,14 @@
-/home/lamby/git/debian/reproducible-builds/diffoscope/tests/data/test1.xz (1/1)
+/home/lamby/git/debian/reproducible-builds/diffoscope/tests/data/test2.xz (1/1)
@@ -1,13 +1,13 @@
   Streams:           1
   Blocks:            1
-  Compressed size:   388 B