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 }