Merge pull request #775 from dvejmz/fix#753

Handle libalpm callbacks when checking DB satisfiers for a package
This commit is contained in:
Anna 2018-10-17 00:18:55 +01:00 committed by GitHub
commit 79f7322722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {