[Libreoffice-commits] core.git: bin/update

Markus Mohrhard markus.mohrhard at googlemail.com
Fri Aug 4 04:02:59 UTC 2017


 bin/update/tools.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 71b0d8b89d4701fcf1d22e2baf1ef5d983bc10d5
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Aug 3 00:19:55 2017 +0200

    updater: initial working on windows support for mar file generation
    
    Change-Id: Ia91724afbb258c7667dd18e76a32be24bff369ef
    Reviewed-on: https://gerrit.libreoffice.org/40753
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/bin/update/tools.py b/bin/update/tools.py
index 5a3e34521b40..1e14f793cceb 100644
--- a/bin/update/tools.py
+++ b/bin/update/tools.py
@@ -1,5 +1,6 @@
 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)


More information about the Libreoffice-commits mailing list