[diffoscope] 04/05: comparators: bzip2: replaced dest_path gen by self.get_path_name

Juliana Oliveira R jwnx-guest at moszumanska.debian.org
Sat Sep 16 17:43:12 CEST 2017


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

jwnx-guest pushed a commit to branch jwnx_fix_different_container_type_comparison
in repository diffoscope.

commit 51c895ac460509a136f366584d69989718eb2785
Author: Juliana Oliveira Rodrigues <juliana.orod at gmail.com>
Date:   Sun Sep 10 21:53:43 2017 -0300

    comparators: bzip2: replaced dest_path gen by self.get_path_name
    
    Replaced local dest_path generation by get_path_name method.
    Avoids possible OSErrors caused by a too long filename after container
    extraction.
---
 diffoscope/comparators/bzip2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/bzip2.py b/diffoscope/comparators/bzip2.py
index 61007d5..ce36cb0 100644
--- a/diffoscope/comparators/bzip2.py
+++ b/diffoscope/comparators/bzip2.py
@@ -42,7 +42,7 @@ class Bzip2Container(Archive):
 
     @tool_required('bzip2')
     def extract(self, member_name, dest_dir):
-        dest_path = os.path.join(dest_dir, member_name)
+        dest_path = self.get_path_name(dest_dir)
         logger.debug('bzip2 extracting to %s', dest_path)
         with open(dest_path, 'wb') as fp:
             subprocess.check_call(

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


More information about the diffoscope mailing list