diff --git a/pisi/archive.py b/pisi/archive.py index d31a4792..28a1b81c 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -146,7 +146,10 @@ class ArchiveZip(ArchiveBase): ofile = os.path.join(target_dir, outpath) if is_dir: # this is a directory - os.makedirs(os.path.join(target_dir, info.filename)) + try: # To get rid of Error:[Errno 17] File exists: errors + os.makedirs(os.path.join(target_dir, info.filename)) + except OSError: + pass continue # check that output dir is present