From 1890311d118f63fd9b34a93b866495fbd1db6f3f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 15 Nov 2024 16:35:31 +0300 Subject: [PATCH] fix: add alt only for rpm on altlinux --- pkg/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/build.go b/pkg/build/build.go index b00a969..bca977f 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -502,7 +502,7 @@ func buildPkgMetadata(vars *types.BuildVars, dirs types.Directories, pkgFormat s }) } - if info.ID == "altlinux" { + if pkgFormat == "rpm" && info.ID == "altlinux" { pkgInfo.Release = "alt" + pkgInfo.Release }