Skip to content

Commit

Permalink
Merge pull request #584 from gibizer/bundle-cache-data
Browse files Browse the repository at this point in the history
[bundle-cache-data] handle multiple gzip per bundle
  • Loading branch information
openshift-merge-bot[bot] authored Dec 4, 2023
2 parents 246adc8 + 0fa3116 commit 8546f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/bundle-cache-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ function extract_bundle {
function extract_csv {
local IN_DIR=$1
local OUT_DIR=$2

for X in $(file ${IN_DIR}/* | grep gzip | cut -f 1 -d ':'); do
tar xvf $X -C ${OUT_DIR} --wildcards --no-anchor '**/*clusterserviceversion.yaml'
# NOTE(gibi): There might be multiple gzip in the bundle and
# not all of them hand csv file in it. If none of them has
# the csv then the build will fail at the csv-merger call
tar xvf $X -C ${OUT_DIR} --wildcards --no-anchor '**/*clusterserviceversion.yaml' || true
done
}

Expand Down

0 comments on commit 8546f76

Please sign in to comment.