Bug 1024975 - [browser] Ignore searchplugins/metrolist.txt in filter.py. r=gavin, f=pike
authorFrancesco Lodolo (:flod) <flod@lodolo.net>
Fri, 13 Jun 2014 04:14:00 +0200
changeset 188853 49f7863e004fc2d52e39635c5f89ba38aba4a543
parent 188852 8190adf4e7189d0cc76ac68af8ef2979964ada42
child 188854 473a010048de4c7d220b3f940261c626415fd2b5
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersgavin
bugs1024975
milestone33.0a1
Bug 1024975 - [browser] Ignore searchplugins/metrolist.txt in filter.py. r=gavin, f=pike
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