[arch] improvement: text length of the 'dependencies installation' popup reduced

This commit is contained in:
Vinicius Moreira
2022-03-28 16:58:22 -03:00
parent d2513cc94f
commit 9e8ad38e03
12 changed files with 19 additions and 15 deletions

View File

@@ -2075,7 +2075,7 @@ class ArchManager(SoftwareManager):
def _ask_and_install_missing_deps(self, context: TransactionContext, missing_deps: List[Tuple[str, str]]) -> bool:
context.watcher.change_substatus(self.i18n['arch.missing_deps_found'].format(bold(context.name)))
if not confirmation.request_install_missing_deps(context.name, missing_deps, context.watcher, self.i18n):
if not confirmation.request_install_missing_deps(missing_deps, context.watcher, self.i18n):
context.watcher.print(self.i18n['action.cancelled'])
return False
@@ -2265,7 +2265,8 @@ class ArchManager(SoftwareManager):
sorted_deps = sorting.sort(to_sort, {**deps_data, **subdeps_data}, provided_map)
if display_deps_dialog and not confirmation.request_install_missing_deps(None, sorted_deps, context.watcher, self.i18n):
if display_deps_dialog and not confirmation.request_install_missing_deps(sorted_deps, context.watcher,
self.i18n):
context.watcher.print(self.i18n['action.cancelled'])
return True # because the main package installation was successful