Packaging: Use rpm-digest sha256 when creating rpm packages (#59510)

* Use rpm-digest sha256 when creating rpm packages

* only append this argument with rpm builds
This commit is contained in:
Kevin Minehart 2022-11-30 09:35:02 -06:00 committed by GitHub
parent 3b53fdb53a
commit 76a586195a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,6 +400,7 @@ func executeFPM(options linuxPackageOptions, packageRoot, srcDir string) error {
switch options.packageType {
case packageTypeRpm:
args = append(args, "-t", "rpm", "--rpm-posttrans", "packaging/rpm/control/posttrans")
args = append(args, "--rpm-digest", "sha256")
case packageTypeDeb:
args = append(args, "-t", "deb", "--deb-no-default-config-files")
default: