diff options
Diffstat (limited to 'mach_install_ignore_errors.patch')
-rw-r--r-- | mach_install_ignore_errors.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mach_install_ignore_errors.patch b/mach_install_ignore_errors.patch new file mode 100644 index 000000000000..8f664c3f21c2 --- /dev/null +++ b/mach_install_ignore_errors.patch @@ -0,0 +1,35 @@ +diff -Naur firefox-52.9.0esr.orig/toolkit/mozapps/installer/packager.py firefox-52.9.0esr/toolkit/mozapps/installer/packager.py +--- firefox-52.9.0esr.orig/toolkit/mozapps/installer/packager.py 2024-01-07 16:54:43.185021639 +0100 ++++ firefox-52.9.0esr/toolkit/mozapps/installer/packager.py 2024-01-07 21:33:32.564305725 +0100 +@@ -163,17 +163,20 @@ + % resource], + extra_linker_path=gre_path, + extra_env=extra_env): +- errors.fatal('Error while running startup cache precompilation') +- return +- from mozpack.mozjar import JarReader +- jar = JarReader(cache) +- resource = '/resource/%s/' % resource +- for f in jar: +- if resource in f.filename: +- path = f.filename[f.filename.index(resource) + len(resource):] +- if registry.contains(path): +- registry.add(f.filename, GeneratedFile(f.read())) +- jar.close() ++ # errors.fatal('Error while running startup cache precompilation') ++ # return ++ # Ignore the xpcshell errors as it's buggy ATM ++ pass ++ if os.path.exists(cache): ++ from mozpack.mozjar import JarReader ++ jar = JarReader(cache) ++ resource = '/resource/%s/' % resource ++ for f in jar: ++ if resource in f.filename: ++ path = f.filename[f.filename.index(resource) + len(resource):] ++ if registry.contains(path): ++ registry.add(f.filename, GeneratedFile(f.read())) ++ jar.close() + finally: + if os.path.exists(cache): + os.remove(cache) |