[Reproducible-commits] [debbindiff] 04/06: Fix comparison of files in cpio archives

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jun 24 17:37:05 UTC 2015


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

lunar pushed a commit to branch master
in repository debbindiff.

commit 5cdf64b2c457ce9d7448937b6bd833bb884d64a5
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jun 24 17:22:19 2015 +0000

    Fix comparison of files in cpio archives
---
 debbindiff/comparators/cpio.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/debbindiff/comparators/cpio.py b/debbindiff/comparators/cpio.py
index 50c640d..128aa2c 100644
--- a/debbindiff/comparators/cpio.py
+++ b/debbindiff/comparators/cpio.py
@@ -33,7 +33,7 @@ class CpioContent(Command):
 @tool_required('cpio')
 def get_cpio_names(path):
     cmd = ['cpio', '--quiet', '-tF', path]
-    return subprocess.check_output(cmd, stderr=subprocess.PIPE, shell=False)
+    return subprocess.check_output(cmd, stderr=subprocess.PIPE, shell=False).splitlines(False)
 
 
 @tool_required('cpio')
@@ -64,9 +64,7 @@ def compare_cpio_files(path1, path2, source=None):
         with make_temp_directory() as temp_dir2:
             extract_cpio_archive(path1, temp_dir1)
             extract_cpio_archive(path2, temp_dir2)
-            files1 = content1.splitlines(1)
-            files2 = content2.splitlines(1)
-            for member in sorted(set(files1).intersection(set(files2))):
+            for member in sorted(set(content1).intersection(set(content2))):
                 in_path1 = os.path.join(temp_dir1, member)
                 in_path2 = os.path.join(temp_dir2, member)
                 if not os.path.isfile(in_path1) or not os.path.isfile(in_path2):

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



More information about the Reproducible-commits mailing list