old_contents: 
  import sys
  
  
  """
  Check that we run a supported OS and architecture.
  """
  
  def unsupported(platform):
      print('Unsupported OS/platform %r.' % platform)
      print('See https://github.com/nexB/scancode-toolkit/ for supported OS/platforms.')
      print('Enter a ticket https://github.com/nexB/scancode-toolkit/issues asking for support of your OS/platform combo.')
      sys.exit(1)
  
  if sys.maxsize > 2 ** 32:
      arch = '64'
  else:
      arch = '32'
  
  sys_platform = str(sys.platform).lower()
  if 'linux' in sys_platform:
      os = 'linux'
  elif'win32' in sys_platform:
      os = 'win'
  elif 'darwin' in sys_platform:
      os = 'mac'
  else:
      unsupported(sys_platform)
  
  
  supported_combos = {
      'linux': ['32', '64'],
      'win': ['32', ],
      'mac': ['64', ],
  }
  
  arches = supported_combos[os]
  if arch not in arches:
      unsupported(os + arch)
  
  
  """
  Re/build the license cache on every configure run.
  """
  
  def build_license_cache():
      """
      Force a rebuild of the license cache on configure.
      """
      from licensedcode import cache
      cache.get_or_build_index_from_cache(bypass_validity_check=False)
  
  
  build_license_cache()
new_contents: 
  import sys
  
  
  """
  Check that we run a supported OS and architecture.
  """
  
  def unsupported(platform):
      print('Unsupported OS/platform %r.' % platform)
      print('See https://github.com/nexB/scancode-toolkit/ for supported OS/platforms.')
      print('Enter a ticket https://github.com/nexB/scancode-toolkit/issues asking for support of your OS/platform combo.')
      sys.exit(1)
  
  if sys.maxsize > 2 ** 32:
      arch = '64'
  else:
      arch = '32'
  
  sys_platform = str(sys.platform).lower()
  if 'linux' in sys_platform:
      os = 'linux'
  elif'win32' in sys_platform:
      os = 'win'
  elif 'darwin' in sys_platform:
      os = 'mac'
  else:
      unsupported(sys_platform)
  
  
  supported_combos = {
      'linux': ['32', '64'],
      'win': ['32',],
      'mac': ['64',],
  }
  
  arches = supported_combos[os]
  if arch not in arches:
      unsupported(os + arch)
  
  
  """
  Re/build the license cache on every configure run.
  """
  
  def build_license_cache():
      """
      Force a rebuild of the license cache on configure.
      """
      from licensedcode import cache
      print('* Building license index...')
      cache.get_or_build_index_from_cache(bypass_validity_check=False)
  
  
  build_license_cache()
subject: Clean code. Add message when reindexing #603 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>