fix: AUR installation | showing optdeps comments

This commit is contained in:
Vinicius Moreira
2019-09-18 19:15:53 -03:00
parent 65f313cbd8
commit 299be33d9f
3 changed files with 21 additions and 10 deletions

View File

@@ -8,8 +8,8 @@ from bauh.commons.html import bold
def request_optional_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatcher, i18n: dict) -> Set[str]:
view_opts = MultipleSelectComponent(label='',
options=[InputOption('{} ( {} )'.format(p, m.upper()), p) for p, m in
pkg_mirrors.items()])
options=[InputOption('{}{} ( {} )'.format(p, ': ' + d['desc'] if d['desc'] else '', d['mirror'].upper()), p)
for p, d in pkg_mirrors.items()])
install = watcher.request_confirmation(title=i18n['arch.install.optdeps.request.title'],
body='<p>{}</p>'.format(i18n['arch.install.optdeps.request.body'].format(bold(pkgname)) + ':'),
components=[view_opts],