[packages/firefox60-esr] - skip writing stats altogether
baggins
baggins at pld-linux.org
Sun May 26 21:14:41 CEST 2019
commit 1197cb59594b0aef93522bebfbcb3beab0444767
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun May 26 21:14:25 2019 +0200
- skip writing stats altogether
ignore-stats-errors.patch | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/ignore-stats-errors.patch b/ignore-stats-errors.patch
index afadc65..8033a31 100644
--- a/ignore-stats-errors.patch
+++ b/ignore-stats-errors.patch
@@ -1,10 +1,25 @@
--- firefox-60.7.0/python/mozbuild/mozbuild/controller/building.py~ 2019-05-14 21:13:24.000000000 +0200
+++ firefox-60.7.0/python/mozbuild/mozbuild/controller/building.py 2019-05-26 20:22:50.485588101 +0200
-@@ -322,6 +322,7 @@
- self.log(logging.WARNING, 'build_resources_error',
- {'msg': str(e)},
- 'Exception when writing resource usage file: {msg}')
-+ pass
+@@ -307,21 +307,7 @@
+ self.warnings_database.prune()
+ self.warnings_database.save_to_file(self._warnings_path)
+
+- if not record_usage:
+- return
+-
+- try:
+- usage = self.get_resource_usage()
+- if not usage:
+- return
+-
+- self.log_resource_usage(usage)
+- with open(self._get_state_filename('build_resources.json'), 'w') as fh:
+- json.dump(self.resources.as_dict(), fh, indent=2)
+- except Exception as e:
+- self.log(logging.WARNING, 'build_resources_error',
+- {'msg': str(e)},
+- 'Exception when writing resource usage file: {msg}')
++ return
def _get_finder_cpu_usage(self):
"""Obtain the CPU usage of the Finder app on OS X.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/firefox60-esr.git/commitdiff/1197cb59594b0aef93522bebfbcb3beab0444767
More information about the pld-cvs-commit
mailing list