Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Disable Checksum if signature present and fix error if not checksum i…
Browse files Browse the repository at this point in the history
…nformation
  • Loading branch information
JGoutin committed Jun 30, 2021
1 parent 4b62267 commit 56684ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@
when:
- xilinx_xrt_install | bool
- not xbutil.stat.exists
- not aws_package_sig.changed

- name: Verify XRT AWS package checksum
command: sha512sum -c {{ xrt_package }}.digests
args:
chdir: "{{ xrt_tmp.path }}"
changed_when: false
failed_when: _aws_sum.rc != 0 and "Failed to get nevra" not in _aws_sum.stdout
register: _aws_sum
when:
- xilinx_xrt_install | bool
- not xbutil.stat.exists
Expand Down
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,15 @@
when:
- xilinx_xrt_install | bool
- not xbutil.stat.exists
- not xrt_package_sig.changed

- name: Verify XRT package checksum
command: sha512sum -c {{ xrt_package }}.digests
args:
chdir: "{{ xrt_tmp.path }}"
changed_when: false
failed_when: _xrt_sum.rc != 0 and "Failed to get nevra" not in _xrt_sum.stdout
register: _xrt_sum
when:
- xilinx_xrt_install | bool
- not xbutil.stat.exists
Expand Down

0 comments on commit 56684ea

Please sign in to comment.