Bug 1630282 - Not all locales have the same number of map service prefs. r=rjl

This commit is contained in:
Ian Neal 2020-04-15 15:51:27 +01:00
Родитель 2f2918f70d
Коммит a0eda81500
4 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -19,7 +19,8 @@ def test(mod, path, entity=None):
return "ignore"
if path == "chrome/messenger-region/region.properties":
return ("ignore" if (re.match(r"browser\.search\.order\.[1-9]", entity))
return ("ignore" if (re.match(r"browser\.search\.order\.[1-9]", entity) or
re.match(r"mail\.addr_book\.mapit_url\.[1-5]", entity))
else "error")
return "error"

Просмотреть файл

@ -132,3 +132,9 @@ locales = [
path = "{l}mail/chrome/messenger-region/region.properties"
key = "re:browser\\.search\\.order\\.[1-9].*"
action = "ignore"
# map service prefs don't have the same number for all locales
[[filters]]
path = "{l}mail/chrome/messenger-region/region.properties"
key = "re:mail\\.addr_book\\.mapit_url\\.[1-5].*"
action = "ignore"

Просмотреть файл

@ -37,6 +37,10 @@ def test(mod, path, entity=None):
return ("ignore" if (re.match(r"browser\.search\.order\.[1-9]", entity))
else "error")
if path == "chrome/mailnews/region.properties":
return ("ignore" if (re.match(r"mail\.addr_book\.mapit_url\.[1-5]", entity))
else "error")
if path != "chrome/browser/region.properties":
# only region.properties exceptions remain, compare all others
return "error"

Просмотреть файл

@ -99,6 +99,12 @@ locales = [
key = "re:browser\\.contentHandlers\\.types\\.[0-5].*"
action = "ignore"
# map service prefs don't have the same number for all locales
[[filters]]
path = "{l}suite/chrome/mailnews/region.properties"
key = "re:mail\\.addr_book\\.mapit_url\\.[1-5].*"
action = "ignore"
# search plugins are different per locale, ignore file difference
[[filters]]
path = "{l}suite/searchplugins/*.xml"