fix: AUR optinal dep not found among installed apps

This commit is contained in:
Vinicius Moreira
2019-09-19 14:33:51 -03:00
parent a900789c9d
commit 94031588b0
3 changed files with 13 additions and 3 deletions

View File

@@ -416,7 +416,7 @@ class ArchManager(SoftwareManager):
pkg_mirrors = self._map_mirrors(to_install)
if pkg_mirrors:
final_optdeps = {dep: {'desc': odeps[dep], 'mirror': pkg_mirrors[dep]} for dep in to_install}
final_optdeps = {dep: {'desc': odeps.get(dep), 'mirror': pkg_mirrors.get(dep)} for dep in to_install if dep in pkg_mirrors}
deps_to_install = confirmation.request_optional_deps(pkgname, final_optdeps, handler.watcher, self.i18n)