summaryrefslogtreecommitdiff
path: root/helpers/DATA/firefox/patches/hack-manifest-packaging.patch
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/DATA/firefox/patches/hack-manifest-packaging.patch')
-rw-r--r--helpers/DATA/firefox/patches/hack-manifest-packaging.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/helpers/DATA/firefox/patches/hack-manifest-packaging.patch b/helpers/DATA/firefox/patches/hack-manifest-packaging.patch
new file mode 100644
index 0000000..5cede80
--- /dev/null
+++ b/helpers/DATA/firefox/patches/hack-manifest-packaging.patch
@@ -0,0 +1,17 @@
+# Hack allowing to bundle whole unpacked extensions without their manifests
+# breaking the packaging process.
+
+--- a/python/mozbuild/mozpack/packager/__init__.py 2014-10-04 19:03:00.000000000 +0000
++++ b/python/mozbuild/mozpack/packager/__init__.py 2014-10-06 12:07:03.000000000 +0000
+@@ -246,7 +246,10 @@
+ '''
+ assert not self._closed
+ if is_manifest(path):
+- self._add_manifest_file(path, file)
++ if "chrome.manifest" in path and "extensions" in path:
++ self._file_queue.append(self.formatter.add, path, file)
++ else:
++ self._add_manifest_file(path, file)
+ elif path.endswith('.xpt'):
+ self._queue.append(self.formatter.add_interfaces, path, file)
+ else: