Commit bbdb941 Add Checksum URL for latest AH download media

1 file Authored and Committed by Sinny Kumari 11 days ago
Add Checksum URL for latest AH download media

Using latest checksum for AH media, user can verify
the downloaded images easily in their script

Related PR - https://pagure.io/atomic-wg/issue/467

Signed-off-by: Sinny Kumari <sinny@redhat.com>

    
 1 @@ -191,6 +191,19 @@
 2                   # Figure out which of our vars we're going to set, and set it
 3                   iso_size_key = iso_size_prefix + mapping[key]
 4                   results['iso_size'][iso_size_key] = str(length)
 5 +             results['release']['redir_map']['atomic_images_checksum_' + arch] = {}
 6 +             results['release']['redir_map']['atomic_images_checksum_' + arch]['redirect']=\
 7 +                 download_fpo + '/pub/alt/atomic/stable/Fedora-Atomic-' + idx + '-' + composedate +\
 8 +                 '/AtomicHost/' + arch + '/images/Fedora-AtomicHost-' + idx + '-' + composedate + '-' + arch + '-CHECKSUM'
 9 +             results['release']['redir_map']['atomic_images_checksum_' + arch]['filename'] = \
10 +                 'Fedora-AtomicHost-' + idx + '-' + composedate + '-' + arch + '-CHECKSUM'
11 + 
12 +             results['release']['redir_map']['atomic_dvd_ostree_checksum_' + arch] = {}
13 +             results['release']['redir_map']['atomic_dvd_ostree_checksum_' + arch]['redirect'] = \
14 +                 download_fpo + '/pub/alt/atomic/stable/Fedora-Atomic-' + idx + '-' + composedate + \
15 +                 '/AtomicHost/' + arch + '/iso/Fedora-AtomicHost-' + idx + '-' + composedate + '-' + arch + '-CHECKSUM'
16 +             results['release']['redir_map']['atomic_dvd_ostree_checksum_' + arch]['filename'] = \
17 +                 'Fedora-AtomicHost-' + idx + '-' + composedate + '-' + arch + '-CHECKSUM'
18   
19       return results
20