mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 13:24:14 +02:00
fix: AUR optinal dep not found among installed apps
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ class ArchPackage(SoftwarePackage):
|
||||
|
||||
def can_be_run(self) -> bool:
|
||||
# only returns if there is a desktop entry set for the application to avoid running command-line applications
|
||||
return bool(self.desktop_entry)
|
||||
return bool(self.command) and bool(self.desktop_entry)
|
||||
|
||||
def get_publisher(self):
|
||||
return self.maintainer
|
||||
|
||||
Reference in New Issue
Block a user