From aba89db204b758c3d150cd37fa98d39ed8c6e13c Mon Sep 17 00:00:00 2001 From: Itxaka Date: Mon, 6 Sep 2021 14:58:50 +0200 Subject: [PATCH] installer: Take into consideration provides names When installing a package that has a provides values, the installer only checks the original package against the resolved package. This leads to the requires keyword not working as expected as the solved final package is never gonna match the name of the old/superseeded package. This patch checks the asked-to-install package name against the list of names that the matched name provides. Signed-off-by: Itxaka --- pkg/installer/installer.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/installer/installer.go b/pkg/installer/installer.go index a598b2247..3f9dbea74 100644 --- a/pkg/installer/installer.go +++ b/pkg/installer/installer.go @@ -551,6 +551,11 @@ func (l *LuetInstaller) Install(cp pkg.Packages, s *System) error { if m.Package.GetName() == p.GetName() { found = true } + for _, pack := range m.Package.GetProvides() { + if pack.GetName() == p.GetName() { + found = true + } + } } if !found {