From f5fbff1186b3b5e35ba214e0f987ba5a7cc83f18 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 10 Feb 2020 15:40:05 -0300 Subject: [PATCH] [README] --- CHANGELOG.md | 3 ++- README.md | 4 ++-- bauh/view/qt/thread.py | 7 ++++--- bauh/view/resources/locale/ca | 2 +- bauh/view/resources/locale/de | 2 +- bauh/view/resources/locale/es | 2 +- bauh/view/resources/locale/it | 2 +- bauh/view/resources/locale/pt | 2 +- 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a541721..7125a3c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [0.8.3] - 2020 +## [0.8.3] - 2020-02 ### Improvements - New update lifecycle: + - now every package manager must provide all requirements before upgrading all selected packages ( can be disabled through the settings file **~/.config/bauh/config.yml** or the UI ) - now every package manager must provide the best upgrade order for all the selected packages ( can be disabled through the settings file **~/.config/bauh/config.yml** or the UI ) - AUR - allowing the user to bypass checksum errors when installing / upgrading / downgrading packages diff --git a/README.md b/README.md index e1c84d14..5e817e32 100644 --- a/README.md +++ b/README.md @@ -247,8 +247,8 @@ ui: auto_scale: false # activates Qt auto screen scale factor (QT_AUTO_SCREEN_SCALE_FACTOR). It fixes scaling issues for some desktop environments ( like Gnome ) updates: check_interval: 30 # the updates checking interval in SECONDS - sort_packages: True # if the selected applications / packages to upgrade must be sorted to avoid possible issues - + sort_packages: true # if the selected applications / packages to upgrade must be sorted to avoid possible issues + pre_dependency_checking: true # displays all applications / packages that must be installed before upgrading the selected ones ``` #### Tray icons Priority: diff --git a/bauh/view/qt/thread.py b/bauh/view/qt/thread.py index c4df112d..6906ed70 100644 --- a/bauh/view/qt/thread.py +++ b/bauh/view/qt/thread.py @@ -13,6 +13,7 @@ from bauh.api.abstract.handler import ProcessWatcher from bauh.api.abstract.model import PackageStatus, SoftwarePackage, PackageAction from bauh.api.abstract.view import InputViewComponent, MessageType, MultipleSelectComponent, InputOption from bauh.api.exception import NoInternetException +from bauh.commons.html import bold from bauh.view.core import config from bauh.view.qt import commons from bauh.view.qt.view_model import PackageView @@ -103,13 +104,13 @@ class UpdateSelectedApps(AsyncAction): if pkg.installed: icon_path = pkg.get_disk_icon_path() - if not os.path.isfile(icon_path): + if not icon_path or not os.path.isfile(icon_path): icon_path = pkg.get_type_icon_path() else: icon_path = pkg.get_type_icon_path() - return InputOption(label='{}{}'.format(pkg.name, ' ( {} )'.format(pkg.latest_version) if pkg.version else ''), + return InputOption(label='{}{}'.format(pkg.name, ' ( {} )'.format(pkg.latest_version) if pkg.latest_version else ''), value=None, tooltip=pkg.get_name_tooltip() if tooltip else None, read_only=True, @@ -123,7 +124,7 @@ class UpdateSelectedApps(AsyncAction): opts = [self._pkg_as_option(p) for p in required_pkgs] if not self.request_confirmation(self.i18n['action.update.requirements.title'], - self.i18n['action.update.requirements.body'], + self.i18n['action.update.requirements.body'].format(bold(str(len(opts)))), [MultipleSelectComponent(label='', options=opts, default_options=set(opts))], confirmation_label=self.i18n['continue'].capitalize(), deny_label=self.i18n['cancel'].capitalize()): diff --git a/bauh/view/resources/locale/ca b/bauh/view/resources/locale/ca index ba5650fa..31fd9909 100644 --- a/bauh/view/resources/locale/ca +++ b/bauh/view/resources/locale/ca @@ -272,7 +272,7 @@ download=download clean=netejar action.update.status.sorting=Determinant el millor ordre d’actualització action.update.requirements.title=Requisits d’actualització -action.update.requirements.body=Abans d’actualitzar cal instal·lar les següents aplicacions / paquets +action.update.requirements.body=Abans d’actualitzar cal instal·lar les següents {} aplicacions / paquets action.update.install_req.fail.title=Ha fallat la instal·lació action.update.install_req.fail.body=No s'ha pogut instal·lar {} action.update.requirements.status=Verificant els requisits diff --git a/bauh/view/resources/locale/de b/bauh/view/resources/locale/de index 6cc47d7f..f2d2b34f 100644 --- a/bauh/view/resources/locale/de +++ b/bauh/view/resources/locale/de @@ -227,7 +227,7 @@ download=download clean=reinigen action.update.status.sorting=Determining the best update order action.update.requirements.title=Upgrade requirements -action.update.requirements.body=The following applications / packages must be installed before upgrading +action.update.requirements.body=The following {} applications / packages must be installed before upgrading action.update.install_req.fail.title=Installation failed action.update.install_req.fail.body=It was not possible to install {} action.update.requirements.status=Checking requirements diff --git a/bauh/view/resources/locale/es b/bauh/view/resources/locale/es index fafa7ea1..dfbf4037 100644 --- a/bauh/view/resources/locale/es +++ b/bauh/view/resources/locale/es @@ -275,7 +275,7 @@ download=descarga clean=limpiar action.update.status.sorting=Determinando el mejor orden de actualización action.update.requirements.title=Requisitos de actualización -action.update.requirements.body=Las siguientes aplicaciones / paquetes deben estar instalados antes de actualizar +action.update.requirements.body=Las siguientes {} aplicaciones / paquetes deben estar instalados antes de actualizar action.update.install_req.fail.title=Falló la instalación action.update.install_req.fail.body=No fue posible instalar {} action.update.requirements.status=Verificando los requisitos diff --git a/bauh/view/resources/locale/it b/bauh/view/resources/locale/it index f0f24f01..37ade644 100644 --- a/bauh/view/resources/locale/it +++ b/bauh/view/resources/locale/it @@ -227,7 +227,7 @@ download=download clean=pulire action.update.status.sorting=Sto determinando il miglior ordine di aggiornamento action.update.requirements.title=Requisiti di aggiornamento -action.update.requirements.body=Le seguenti applicazioni / pacchetti devono essere installati prima dell'aggiornamento +action.update.requirements.body=Le seguenti {} applicazioni / pacchetti devono essere installati prima dell'aggiornamento action.update.install_req.fail.title=Installazione non riuscita action.update.install_req.fail.body=Non è stato possibile installare {} action.update.requirements.status=Verificando i requisiti diff --git a/bauh/view/resources/locale/pt b/bauh/view/resources/locale/pt index 5e9aa3e9..b04275c1 100644 --- a/bauh/view/resources/locale/pt +++ b/bauh/view/resources/locale/pt @@ -278,7 +278,7 @@ download=download clean=limpar action.update.status.sorting=Determinando a melhor ordem de atualização action.update.requirements.title=Requisitos de atualização -action.update.requirements.body=Os seguintes aplicativos / pacotes precisam ser instalados antes de atualizar +action.update.requirements.body=Os seguintes {} aplicativos / pacotes precisam ser instalados antes de atualizar action.update.install_req.fail.title=Instalação falhou action.update.install_req.fail.body=Não foi possível instalar {} action.update.requirements.status=Verificando requisitos