third_party/afl/update.py
def update_afl(new_version):
  """
  Update this version of AFL to newer version, new_version.
  """
  readme = ChromiumReadme()
  old_version = readme.get_current_version()
  if new_version != 'latest':
    new_float = version_to_float(new_version)
    assert version_to_float(old_version) < new_float, (
        'Trying to update from version {0} to {1}'.format(old_version,
                                                          new_version))

  # Extract the tarball.
  tarball = AflTarball(new_version)
  tarball.download()
  tarball.extract()

  apply_patches()

  readme.update(tarball.real_version)

  Update this version of AFL to newer version, new_version.
  
Update this version of AFL to newer version, new_version.
Update this version of AFL to newer version new_version .
def update_afl(new_version):
  readme = ChromiumReadme()
  old_version = readme.get_current_version()
  if new_version != 'latest':
    new_float = version_to_float(new_version)
    assert version_to_float(old_version) < new_float, (
        'Trying to update from version {0} to {1}'.format(old_version,
                                                          new_version))
  tarball = AflTarball(new_version)
  tarball.download()
  tarball.extract()
  apply_patches()
  readme.update(tarball.real_version)
def update_afl ( new_version ) : readme = ChromiumReadme ( ) old_version = readme . get_current_version ( ) if new_version != 'latest' : new_float = version_to_float ( new_version ) assert version_to_float ( old_version ) < new_float , ( 'Trying to update from version {0} to {1}' . format ( old_version , new_version ) ) tarball = AflTarball ( new_version ) tarball . download ( ) tarball . extract ( ) apply_patches ( ) readme . update ( tarball . real_version )
Update this version of AFL to newer version, new_version.
Update this version of AFL to newer version new_version .
"""
  Update this version of AFL to newer version, new_version.
  """ # Extract the tarball.
new_version