old_contents: import os
  from .core import LogFileOutput, MapperOutput, computed  # noqa: F401
  from .core.plugins import mapper, reducer, make_response, make_metadata  # noqa: F401
  from .mappers import get_active_lines  # noqa: F401
  from .util import defaults, parse_table  # noqa: F401
  
  __here__ = os.path.dirname(os.path.abspath(__file__))
  VERSION = "1.9.0"
  NAME = "falafel"
  
  with open(os.path.join(__here__, "RELEASE")) as f:
      RELEASE = f.read().strip()
  
  with open(os.path.join(__here__, "COMMIT")) as f:
      COMMIT = f.read().strip()
  
  
  def get_nvr():
      return "{0}-{1}-{2}".format(NAME, VERSION, RELEASE)
  
new_contents: import os
  from .core import LogFileOutput, MapperOutput, computed  # noqa: F401
  from .core.plugins import mapper, reducer, make_response, make_metadata  # noqa: F401
  from .mappers import get_active_lines  # noqa: F401
  from .util import defaults, parse_table  # noqa: F401
  
  __here__ = os.path.dirname(os.path.abspath(__file__))
  VERSION = "1.9.0"
  NAME = "falafel"
  
  with open(os.path.join(__here__, "RELEASE")) as f:
      RELEASE = f.read().strip()
  
  with open(os.path.join(__here__, "COMMIT")) as f:
      COMMIT = f.read().strip()
  
  
  def get_nvr():
      return "{0}-{1}-{2}".format(NAME, VERSION, RELEASE)
  
  RULES_STATUS = {}
  """
  Mapping of dictionaries containing nvr and commitid for each rule repo included
  in this instance
  
  {"rule_repo_1": {"version": nvr(), "commit": sha1}}
  """
  
  
  def add_status(name, nvr, commit):
      """
      Rule repositories should call this method in their package __init__ to
      register their version information.
      """
      RULES_STATUS[name] = {"version": nvr, "commit": commit}
  
subject: Allow rule repos to provide version information