瀏覽代碼

Handle libalpm callbacks when checking DB satisfiers for a package

Hide provider menu when checking for the existence of a package in
the repos
dvejmz 6 年之前
父節點
當前提交
d42f737849
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      install.go

+ 3 - 1
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) {