summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-11-02 13:01:49 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-11-02 13:01:58 +0200
commitf7eee174dae67282cd2eec0ad9e0cbc45510efee (patch)
treea22425079a4f62edf63bac8c3f44160a41a2bdab
parentc5020a56a003891922c0c70d467981768b0fcd16 (diff)
android: Stop generating the .zip files
They waste time and space, and because of the missing symbolic link support they have lots of duplicated files. People on Windows can also just use an application to extract tar.bz2 files.
-rw-r--r--cerbero/packages/android.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/cerbero/packages/android.py b/cerbero/packages/android.py
index f9ed65f3..337f5a47 100644
--- a/cerbero/packages/android.py
+++ b/cerbero/packages/android.py
@@ -18,7 +18,6 @@
import os
import tarfile
-import zipfile
from cerbero.packages import PackageType
from cerbero.packages.disttarball import DistTarball
@@ -56,24 +55,6 @@ class AndroidPackager(DistTarball):
tar.close()
filenames.append(filename)
- # Create the zip file for windows
- filename = os.path.join(output_dir, self._get_name(package_type,
- ext='zip'))
- if os.path.exists(filename):
- if force:
- os.remove(filename)
- else:
- raise UsageError("File %s already exists" % filename)
-
- zipf = zipfile.ZipFile(filename, 'w')
-
- for f in files:
- filepath = os.path.join(self.prefix, f)
- zipf.write(filepath, os.path.join(package_prefix, f),
- compress_type=zipfile.ZIP_DEFLATED)
- zipf.close()
- filenames.append(filename)
-
return ' '.join(filenames)
def _get_name(self, package_type, ext='tar.bz2'):