From 6e7918b6ccb69876d339a320091fdee811445395 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 20 Oct 2014 02:24:51 +0200 Subject: Generalize data directory --- data/patches/hack-manifest-packaging.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/patches/hack-manifest-packaging.patch (limited to 'data/patches/hack-manifest-packaging.patch') diff --git a/data/patches/hack-manifest-packaging.patch b/data/patches/hack-manifest-packaging.patch new file mode 100644 index 0000000..5cede80 --- /dev/null +++ b/data/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: -- cgit v1.2.3