tools/centos-mirror-tools
M. Vefa Bicakci 0c6adb755d dl_tarball.sh: Support Broadcom tar file download
This commit adds support for downloading Broadcom's NetXtreme-E
driver/library tar archive file. The tar file consists of multiple
nested archives and source RPM files. We are only interested in the
libbnxt_re Infiniband verbs library SRPM and the bnxt_en/bnxt_re kernel
driver source code archive:
- libbnxt_re-220.0.5.0-rhel7u9.src.rpm
- netxtreme-bnxt_en-1.10.2-220.0.13.0.tar.gz

If the archive has already been downloaded, the sha256sum of the archive
is verified. (The checksum is stored in the utility/"util" field in the
listing file.) If not already downloaded, then the archive is downloaded
and the sha256sum of the archive is checked. Finally, the desired files
are extracted from the main tar archive.

(Checksum verification is added as a package-specific behaviour, because
this feature does not exist in the build system, and we would like to be
aware in case the software package is modified.)

Testing:
- dl_tarball.sh correctly removes a pre-existing tar archive with an
  incorrect sha256sum and re-downloads the tar archive.
- If the tar archive does not already exist, then the archive is
  correctly downloaded and the sha256sum is correctly checked.
- If the download_file function or the check_sha256sum function fails,
  then the shell script correctly reports an error message and
  continues. (This was verified with shell script instrumentation.)
- If the tar archive extraction fails or if the expected/desired files
  cannot be found, an error is correctly reported by the shell script,
  and the tar archive is removed to allow follow-up attempts to try
  again. (Also verified with instrumentation.)

Story: 2009915
Task: 44761

Change-Id: Id021a33e7f26643139d6ef0dda5c7146cfb7f172
Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
2022-03-21 15:56:53 -04:00
..
config/centos Merge "httpd: fix three CVEs" 2022-03-21 14:01:25 +00:00
rpm-gpg-keys Add EPEL 8 repos in support of CentOS 8 2020-05-29 04:24:57 +00:00
stx_mirror_scripts use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
yum.repos.d Centos 8.5 moved to vault 2022-02-01 13:51:14 -05:00
dl_lower_layer_rpms.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
dl_other_from_centos_repo.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
dl_rpms.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
dl_rpms_from_url.sh remove pike from mirror path name 2020-09-16 11:13:31 -04:00
dl_tarball.sh dl_tarball.sh: Support Broadcom tar file download 2022-03-21 15:56:53 -04:00
download_mirror.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
make_stx_mirror_yum_conf.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
mirror-check.sh Add layer awareness to mirror-check.sh 2020-12-18 15:45:58 -05:00
show_imported_rpm_gpg_keys.sh Add build tools 2018-06-08 17:01:43 -05:00
starlingx_add_pkgs.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
url_utils.sh Auto update CENGN yum.repos.d 2019-03-22 12:07:08 -04:00
utils.sh dl_tarball.sh: Support Broadcom tar file download 2022-03-21 15:56:53 -04:00
utils_tests.sh use curl + avoid partial downloads 2021-11-10 14:25:47 -05:00
yum.conf.sample download_mirror.sh fails with 404 errors 2019-03-13 14:32:03 +00:00