[improvement][arch] repository string

This commit is contained in:
Vinícius Moreira
2020-05-12 16:49:45 -03:00
parent b45e04c54d
commit 6772994fbc

View File

@@ -24,7 +24,7 @@ def request_optional_deps(pkgname: str, pkg_repos: dict, watcher: ProcessWatcher
size = sizes.get(p) size = sizes.get(p)
op = InputOption('{}{} ({}: {}) - {}: {}'.format(p, ': ' + d['desc'] if d['desc'] else '', op = InputOption('{}{} ({}: {}) - {}: {}'.format(p, ': ' + d['desc'] if d['desc'] else '',
i18n['repository'], i18n['repository'],
d['repository'].upper(), d['repository'].lower(),
i18n['size'].capitalize(), i18n['size'].capitalize(),
get_human_size_str(size) if size else '?'), p) get_human_size_str(size) if size else '?'), p)
op.icon_path = _get_repo_icon(d['repository']) op.icon_path = _get_repo_icon(d['repository'])
@@ -56,7 +56,7 @@ def request_install_missing_deps(pkgname: str, deps: List[Tuple[str, str]], watc
size = sizes.get(dep[0]) size = sizes.get(dep[0])
op = InputOption('{} ({}: {}) - {}: {}'.format(dep[0], op = InputOption('{} ({}: {}) - {}: {}'.format(dep[0],
i18n['repository'], i18n['repository'],
dep[1].upper(), dep[1].lower(),
i18n['size'].capitalize(), i18n['size'].capitalize(),
get_human_size_str(size) if size else '?'), dep[0]) get_human_size_str(size) if size else '?'), dep[0])
op.read_only = True op.read_only = True