[diffoscope] 02/02: comparators.apk: Fix .APK extration when provided with absolute filenames. (Closes: #850485)

Chris Lamb chris at chris-lamb.co.uk
Sat Jan 7 19:34:42 CET 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 6bd6edc1e64fa8e4f2c58c5d49c3aa16ea8214e2
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Jan 7 18:34:01 2017 +0000

    comparators.apk: Fix .APK extration when provided with absolute filenames. (Closes: #850485)
---
 diffoscope/comparators/apk.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/apk.py b/diffoscope/comparators/apk.py
index 1f212af..3cb1905 100644
--- a/diffoscope/comparators/apk.py
+++ b/diffoscope/comparators/apk.py
@@ -41,7 +41,7 @@ class ApkContainer(Archive):
         self._members = []
         self._unpacked = os.path.join(
             get_temporary_directory().name,
-            self.source.name,
+            os.path.basename(self.source.name),
         )
 
         logger.debug("Extracting %s to %s", self.source.name, self._unpacked)

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


More information about the diffoscope mailing list