mirror of
https://github.com/Jguer/yay
synced 2024-08-31 21:58:39 +00:00
Handle libalpm callbacks when checking DB satisfiers for a package
Hide provider menu when checking for the existence of a package in the repos
This commit is contained in:
parent
a565544712
commit
d42f737849
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue