From 42f0d5e5755a878e0f337255975014b9559db9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Sun, 21 Sep 2025 13:43:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20"alr"=20=D0=B2=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=BF=D0=B0=D0=BA?= =?UTF-8?q?=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/build/utils.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/build/utils.go b/internal/build/utils.go index f19dc53..d2e9ad8 100644 --- a/internal/build/utils.go +++ b/internal/build/utils.go @@ -176,8 +176,13 @@ func getBasePkgInfo(vars *alrsh.Package, input interface { OsInfoProvider }, ) *nfpm.Info { + repo := input.Repository() + // Избегаем дублирования "alr-" префикса + if strings.HasPrefix(repo, "alr-") { + repo = repo[4:] // убираем "alr-" префикс + } return &nfpm.Info{ - Name: fmt.Sprintf("%s+alr-%s", vars.Name, input.Repository()), + Name: fmt.Sprintf("%s+alr-%s", vars.Name, repo), Arch: cpu.Arch(), Version: vars.Version, Release: overrides.ReleasePlatformSpecific(vars.Release, input.OSRelease()),