Skip to content

Commit

Permalink
Merge pull request Jguer#775 from dvejmz/fix#753
Browse files Browse the repository at this point in the history
Handle libalpm callbacks when checking DB satisfiers for a package
  • Loading branch information
Morganamilo committed Oct 16, 2018
2 parents a565544 + d42f737 commit 79f7322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 79f7322

Please sign in to comment.