[Reproducible-commits] [debbindiff] 03/03: Fix destination path when decompressing gzip files not ending in .gz

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jun 24 14:19:03 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 117fa061d87cfd2efc8b17360091be52c662064b
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jun 24 14:18:46 2015 +0000

    Fix destination path when decompressing gzip files not ending in .gz
---
 debbindiff/comparators/gzip.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbindiff/comparators/gzip.py b/debbindiff/comparators/gzip.py
index 80f0521..e0405b9 100644
--- a/debbindiff/comparators/gzip.py
+++ b/debbindiff/comparators/gzip.py
@@ -33,7 +33,7 @@ def decompress_gzip(path):
         if path.endswith('.gz'):
             temp_path = os.path.join(temp_dir, os.path.basename(path[:-3]))
         else:
-            temp_path = os.path.join(temp_dir, "%s-content" % path)
+            temp_path = os.path.join(temp_dir, os.path.basename("%s-content" % path))
         with open(temp_path, 'wb') as temp_file:
             subprocess.check_call(
                 ["gzip", "--decompress", "--stdout", path],

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