mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[improvement][aur] optdeps dialog: 'cancel' button label changed to 'do not install'
This commit is contained in:
@@ -27,8 +27,8 @@ def request_optional_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatch
|
||||
install = watcher.request_confirmation(title=i18n['arch.install.optdeps.request.title'],
|
||||
body='<p>{}.</p><p>{}.</p>'.format(i18n['arch.install.optdeps.request.body'].format(bold(pkgname)), i18n['arch.install.optdeps.request.help']),
|
||||
components=[view_opts],
|
||||
confirmation_label=i18n['install'],
|
||||
deny_label=i18n['cancel'])
|
||||
confirmation_label=i18n['install'].capitalize(),
|
||||
deny_label=i18n['do_not.install'].capitalize())
|
||||
|
||||
if install:
|
||||
return {o.value for o in view_opts.values}
|
||||
|
||||
@@ -467,7 +467,7 @@ class ArchManager(SoftwareManager):
|
||||
depnames = {RE_SPLIT_VERSION.split(dep)[0] for dep in check_res['missing_deps']}
|
||||
dep_mirrors = self._map_mirrors(depnames)
|
||||
|
||||
if len(depnames) != len(dep_mirrors): # cheking if a dependency could not be found in any mirror
|
||||
if len(depnames) != len(dep_mirrors): # checking if a dependency could not be found in any mirror
|
||||
for dep in depnames:
|
||||
if dep not in dep_mirrors:
|
||||
message.show_dep_not_found(dep, self.i18n, handler.watcher)
|
||||
|
||||
Reference in New Issue
Block a user