bootstrap: rename shared/download.d to shared/downloads

This directory has a different naming convention than all the others.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: rename jeos asset to jeos-17-64

For image assets (as opposed to ISOs, for example) it is useful if the
asset name matches the image name.  This way, the image_copy test will be
easily able to download image files that are listed in shared/downloads.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: fix typo in get_asset_info

destination_uncompressed is computed incorrectly if relative.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: run decompressor in the directory of the uncompressed file

This is required by 7za.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: pass asset_info to download_file

This will let image_copy use asset_info for images residing on an NFS
mount.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: remove useless os.path.join

This is already done in get_asset_info.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: move uncompression to download_file

This is also so that image_copy's uncompression step can be done
by the asset machinery.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: automatically derive command to uncompress assets

It is basically always the same for common file name extensions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootstrap: move asset functions to a separate library

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
image_copy: use assets as the source

Use the asset library to download images if the images_good parameter
is not set.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
image_copy: skip extraction in image_copy if the image is found to be ok

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
asset: Misc cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>