[diffoscope] 04/05: comparators.elf: Don't blow up if directory containing debug symbols already exists. (Closes: #850807)

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 10 14:00:59 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 1a70d566eed5fe7f4ff78e428bb672cc907e949e
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 10 12:46:52 2017 +0000

    comparators.elf: Don't blow up if directory containing debug symbols already exists. (Closes: #850807)
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/elf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index dc8a386..361c217 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -485,7 +485,7 @@ class ElfContainer(Container):
             '.debug',
             os.path.basename(debuglink),
         )
-        os.mkdir(os.path.dirname(dest_path))
+        os.makedirs(os.path.dirname(dest_path), exist_ok=True)
 
         def objcopy(*args):
             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