Bug 1024975 - [browser] Ignore searchplugins/metrolist.txt in filter.py. r=gavin, f=pike, a=lmandel
authorFrancesco Lodolo (:flod) <flod@lodolo.net>
Fri, 13 Jun 2014 04:14:00 +0200
changeset 207137 f0e9e80048578ee445da7afe6e8a85a440cec0d4
parent 207136 1765a031396e7d7848cda57d2f4a7c6b122c23af
child 207138 f8a03ce5132041cacae4661a761916b0a8f36b4a
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, lmandel
bugs1024975
milestone32.0a2
Bug 1024975 - [browser] Ignore searchplugins/metrolist.txt in filter.py. r=gavin, f=pike, a=lmandel
browser/locales/filter.py
--- a/browser/locales/filter.py
+++ b/browser/locales/filter.py
@@ -15,17 +15,20 @@ def test(mod, path, entity = None):
   if mod not in ("browser", "extensions/spellcheck"):
     # we only have exceptions for browser and extensions/spellcheck
     return "error"
   if not entity:
     # the only files to ignore are spell checkers and search
     if mod == "extensions/spellcheck":
       return "ignore"
     # browser
-    return "ignore" if re.match(r"searchplugins\/.+\.xml", path) else "error"
+    if (re.match(r"searchplugins\/.+\.xml", path) or
+        path == "searchplugins/metrolist.txt"):
+      return "ignore"
+    return "error"
   if mod == "extensions/spellcheck":
     # l10n ships en-US dictionary or something, do compare
     return "error"
   if path == "defines.inc":
     return "ignore" if entity == "MOZ_LANGPACK_CONTRIBUTORS" else "error"
 
   if mod == "browser" and path == "chrome/browser-region/region.properties":
     # only region.properties exceptions remain, compare all others