fix: add alt only for rpm on altlinux

This commit is contained in:
Maxim Slipenko 2024-11-15 16:35:31 +03:00
parent eb1c1a1d8c
commit 1890311d11

@ -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 pkgInfo.Release = "alt" + pkgInfo.Release
} }