tools/bisect_repackage/bisect_repackage.py
def download_build(cp_num, revision_map, zip_file_name, context):
  """Download a single build corresponding to the cp_num and context."""
  remote_file_path = '%s/%s_%s.zip' % (context.original_remote_path,
                                       context.file_prefix,
                                       revision_map[cp_num])
  try:
    cloud_storage.Get(context.original_gs_bucket,
                      remote_file_path, zip_file_name)
  except Exception, e:
    logging.warning('Failed to download: %s, error: %s', zip_file_name, e)
    return False
  return True
Download a single build corresponding to the cp_num and context.
Download a single build corresponding to the cp_num and context.
Download a single build corresponding to the cp_num and context .
def download_build(cp_num, revision_map, zip_file_name, context):
  remote_file_path = '%s/%s_%s.zip' % (context.original_remote_path,
                                       context.file_prefix,
                                       revision_map[cp_num])
  try:
    cloud_storage.Get(context.original_gs_bucket,
                      remote_file_path, zip_file_name)
  except Exception, e:
    logging.warning('Failed to download: %s, error: %s', zip_file_name, e)
    return False
  return True
def download_build ( cp_num , revision_map , zip_file_name , context ) : remote_file_path = '%s/%s_%s.zip' % ( context . original_remote_path , context . file_prefix , revision_map [ cp_num ] ) try : cloud_storage . Get ( context . original_gs_bucket , remote_file_path , zip_file_name ) except Exception , e : logging . warning ( 'Failed to download: %s, error: %s' , zip_file_name , e ) return False return True
Download a single build corresponding to the cp_num and context.
Download a single build corresponding to the cp_num and context .
"""Download a single build corresponding to the cp_num and context."""
cp_num
revision_map
zip_file_name
context