mail/locales/filter.py
author Robert Kaiser <kairo@kairo.at>
Sun, 24 May 2009 01:47:18 +0200
changeset 2695 b0f2034767c78a12d786a805a5b7bee3ac37a45a
parent 0 e4f4569d451a5e0d12a6aa33ebd916f979dd8faa
child 5234 58494ac482bfa9311d688873c53eea32a64d11bb
permissions -rwxr-xr-x
bug 494621 - Don't package dist/bin/README.txt on Mac, r=mcsmurf

def test(mod, path, entity = None):
  import re
  # ignore anyhting but Thunderbird
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "mail", "editor/ui", "extensions/spellcheck",
                 "other-licenses/branding/thunderbird"):
    return False
  # ignore MOZ_LANGPACK_CONTRIBUTORS
  if mod == "mail" and path == "defines.inc" and \
     entity == "MOZ_LANGPACK_CONTRIBUTORS":
    return False
  # ignore dictionaries
  return not mod == "extensions/spellcheck"