[Reproducible-commits] [debbindiff] 01/01: Assume tar member names are UTF-8 encoded

Jérémy Bobbio lunar at moszumanska.debian.org
Mon May 4 11:30:52 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 360546ff3a6d063290181fd5d345b45e125c83fe
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon May 4 13:28:49 2015 +0200

    Assume tar member names are UTF-8 encoded
    
    This allows debbindiff to process drmips.
---
 debbindiff/comparators/tar.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debbindiff/comparators/tar.py b/debbindiff/comparators/tar.py
index cb2a736..de40c08 100644
--- a/debbindiff/comparators/tar.py
+++ b/debbindiff/comparators/tar.py
@@ -57,12 +57,12 @@ def compare_tar_files(path1, path2, source=None):
                         logger.debug('extract member %s', name)
                         tar1.extract(name, temp_dir1)
                         tar2.extract(name, temp_dir2)
-                        in_path1 = os.path.join(temp_dir1, name)
-                        in_path2 = os.path.join(temp_dir2, name)
+                        in_path1 = os.path.join(temp_dir1, name).decode('utf-8')
+                        in_path2 = os.path.join(temp_dir2, name).decode('utf-8')
                         differences.extend(
                             debbindiff.comparators.compare_files(
                                 in_path1, in_path2,
-                                source=name))
+                                source=name.decode('utf-8')))
                         os.unlink(in_path1)
                         os.unlink(in_path2)
             # look up differences in file list and file metadata

-- 
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