Kaydet (Commit) 71b0d8b8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: initial working on windows support for mar file generation

Change-Id: Ia91724afbb258c7667dd18e76a32be24bff369ef
Reviewed-on: https://gerrit.libreoffice.org/40753Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 57446e0b
import os
import hashlib
import zipfile
import tarfile
def uncompress_file_to_dir(compressed_file, uncompress_dir):
......@@ -16,6 +17,9 @@ def uncompress_file_to_dir(compressed_file, uncompress_dir):
tar.extractall(uncompress_dir)
tar.close()
elif extension == '.zip':
zip_file = zipfile.ZipFile(compressed_file)
zip_file.extractall(uncompress_dir)
zip_file.close()
pass
else:
print("Error: unknown extension " + extension)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment