From 6bec05c408805be18fccb86bb56d514e77651ba0 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 2 Jun 2020 18:12:20 -0300 Subject: [PATCH] [fix][arch] properly fixing multiple providers checking when uninstalling --- bauh/gems/arch/controller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index c9766c3c..f1260193 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -984,8 +984,9 @@ class ArchManager(SoftwareManager): for pkg, deps in required_by_deps.items(): target_required_by = 0 for dep in deps: - if dep in target_provided: - dep_providers = all_provided.get(dep) + dep_split = pacman.RE_DEP_OPERATORS.split(dep) + if dep_split[0] in target_provided: + dep_providers = all_provided.get(dep_split[0]) if dep_providers: target_required_by += 1 if not dep_providers.difference(target_provided) else 0