Loading diffoscope/comparators/xz.py +6 −0 Original line number Diff line number Diff line Loading @@ -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): Loading tests/data/text_xz_list +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 Loading Loading
diffoscope/comparators/xz.py +6 −0 Original line number Diff line number Diff line Loading @@ -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): Loading
tests/data/text_xz_list +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 Loading