author Mark Banner <>
Mon, 01 Oct 2012 21:33:18 +0100
changeset 13467 f521dad4966d897becf28c7f976455677bda2459
parent 10453 120cf812400a344b3f5bedfd78f432d1d00bb4d8
child 15798 8e475124e59f2d281ac2dad916315fcb2e4c9436
permissions -rw-r--r--
Bug 674742 Improve error handling to do our best to avoid removing folder files when rename fails during the compact process. Based on a patch suggested by Andrew (skm) r=rkent,a=Standard8

def test(mod, path, entity = None):
  import re

  # ignore anyhting but calendar stuff
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "calendar", "other-licenses/branding/sunbird"):
    return False

  # Timezone properties don't have to be translated
  if path == "chrome/calendar/":
    return "report"

  # Noun class entries do not have to be translated
  if path == "chrome/calendar/":
    return not re.match(r".*Nounclass[1-9]", entity)

  # Sunbird specific strings don't need translation
  if path.startswith("chrome/sunbird/"):
    return False

  # Everything else should be taken into account
  return True