author Ian Neal <>
Thu, 31 Jul 2014 15:15:22 +0100
changeset 18584 f200e20f0ea9739b812204a913c82751d29c0d7c
parent 16829 452ed9c35bdfb43a65c70c2a98293a4d4a92578b
child 19766 63e433a08b4ebdad9c4faa7a2d89e5ab8fc4ccd2
permissions -rwxr-xr-x
Bug 1044460 - Port relevant changes from Bug 1043344 for moving libraries and programs build to the compile tier r=standard8 for a CLOSED TREE

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

def test(mod, path, entity = None):
  import re
  # ignore anything but Instantbird
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "instantbird", "chat", "purple", "extensions/reporter", "extensions/spellcheck",
                 "instantbird/branding/release", "instantbird/branding/nightly"):
    return False
  if mod == "instantbird" and path.startswith("branding/"):
    return False
  if mod != "instantbird" and mod != "extensions/spellcheck":
    # we only have exceptions for instantbird and extensions/spellcheck
    return True
  if not entity:
    if mod == "extensions/spellcheck":
      return False
    # instantbird
    return not (re.match(r"searchplugins\/.+\.xml", path))
  if mod == "extensions/spellcheck":
    # l10n ships en-US dictionary or something, do compare
    return True
  if path == "":
    return entity != "MOZ_LANGPACK_CONTRIBUTORS"

  if path == "chrome/instantbird/":
    return not (re.match(r"topProtocol\.[^\.]+\.description", entity))

  if path != "chrome/instantbird/":
    # only exceptions remain, compare all others
    return True

  return not (re.match(r"browser\.search\.order\.[1-9]", entity))