# HG changeset patch
# User Ian Neal <iann_cvs@blueyonder.co.uk>
# Date 1614236439 0
# Node ID cc45c336687916a6d1bfed79a80dc8a292b139a5
# Parent 8024f219bda91c98fcbba16f2bfc6b4833014bfc
Bug 1692706 - Update ccache stats parser for ccache 4.x. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D105863
diff --git a/python/mozbuild/mozbuild/controller/building.py b/python/mozbuild/mozbuild/controller/building.py
--- a/python/mozbuild/mozbuild/controller/building.py
+++ b/python/mozbuild/mozbuild/controller/building.py
@@ -842,7 +842,7 @@
DIRECTORY_DESCRIPTION = "cache directory"
PRIMARY_CONFIG_DESCRIPTION = "primary config"
- SECONDARY_CONFIG_DESCRIPTION = "secondary config (readonly)"
+ SECONDARY_CONFIG_DESCRIPTION = "secondary config"
ABSOLUTE_KEYS = {'cache_files', 'cache_size', 'cache_max_size'}
FORMAT_KEYS = {'cache_size', 'cache_max_size'}
@@ -874,7 +874,9 @@
line, self.PRIMARY_CONFIG_DESCRIPTION)
elif line.startswith(self.SECONDARY_CONFIG_DESCRIPTION):
self.secondary_config = self._strip_prefix(
- line, self.SECONDARY_CONFIG_DESCRIPTION)
+ self._strip_prefix(line, self.SECONDARY_CONFIG_DESCRIPTION),
+ "(readonly)",
+ )
else:
for stat_key, stat_description in self.STATS_KEYS:
if line.startswith(stat_description):