Relax format of checksum file
Allow a file with only a single checksum inside to be provided as checksum file. This is handy for some (at least one well known) artefact repositories that automatically produce a .sha256 file for any object uploaded. Change-Id: Ibf4576be0aa93dfca94cf759b9166b57df168347
This commit is contained in:
parent
2afd647ceb
commit
bd871b3dcd
@ -30,7 +30,7 @@
|
||||
mode: 0644
|
||||
|
||||
- name: "Extract IPA kernel checksum"
|
||||
command: awk '/{{ ipa_kernel_upstream_url | basename }}/{print $1}' "{{ ipa_kernel }}.{{ ipa_kernel_upstream_checksum_algo }}"
|
||||
command: awk '/{{ ipa_kernel_upstream_url | basename }}|^[a-z0-9]+$/{print $1}' "{{ ipa_kernel }}.{{ ipa_kernel_upstream_checksum_algo }}"
|
||||
register: parsed_ipa_kernel_checksum
|
||||
failed_when: parsed_ipa_kernel_checksum is failed
|
||||
or not parsed_ipa_kernel_checksum.stdout
|
||||
@ -73,7 +73,7 @@
|
||||
mode: 0644
|
||||
|
||||
- name: "Extract IPA ramdisk checksum"
|
||||
command: awk '/{{ ipa_ramdisk_upstream_url | basename }}/{print $1}' "{{ ipa_ramdisk }}.{{ ipa_ramdisk_upstream_checksum_algo }}"
|
||||
command: awk '/{{ ipa_ramdisk_upstream_url | basename }}|^[a-z0-9]+$/{print $1}' "{{ ipa_ramdisk }}.{{ ipa_ramdisk_upstream_checksum_algo }}"
|
||||
register: parsed_ipa_ramdisk_checksum
|
||||
failed_when: parsed_ipa_ramdisk_checksum is failed
|
||||
or not parsed_ipa_ramdisk_checksum.stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user