From d42f7378493bc41982d4b28835967388b1814b57 Mon Sep 17 00:00:00 2001 From: dvejmz Date: Tue, 16 Oct 2018 00:56:19 +0100 Subject: [PATCH] Handle libalpm callbacks when checking DB satisfiers for a package Hide provider menu when checking for the existence of a package in the repos --- install.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.go b/install.go index c147029f..02793d82 100644 --- a/install.go +++ b/install.go @@ -356,7 +356,10 @@ func inRepos(syncDb alpm.DbList, pkg string) bool { return true } + previousHideMenus := hideMenus + hideMenus = false _, err := syncDb.FindSatisfier(target.DepString()) + hideMenus = previousHideMenus if err == nil { return true } @@ -384,7 +387,6 @@ func earlyPacmanCall(parser *arguments) error { if mode == ModeRepo { arguments.targets = targets } else { - alpmHandle.SetQuestionCallback(func(alpm.QuestionAny) {}) //separate aur and repo targets for _, target := range targets { if inRepos(syncDb, target) {