Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign the RPM package before moving it (#850)
Because the hack/rpm/build_package.sh script can get called more than once to build first a `tanzu-cli` package and then a `tanzu-cli-centos9` package, we ended up on the second call with a `${PKG_DIR}/` directory containing multiple packages. Then, when signing everything in that directory using a `*`, we ended up only signing the first package that was passed as an argument to the signer. This caused the `tanzu-cli-centos9` package not to get signed because it comes alphabetically after `tanzu-cli` when the `*` is expanded. To solve this and still benefit from using the `*` which allows to avoid explicitly dealing with the `-unstable` and/or `-centos` suffixes we sign the package before we move it to the common `${PKG_DIR}/` directory. Signed-off-by: Marc Khouzam <[email protected]>
- Loading branch information