From 04846928eb74f0d4fe31cd2f2a6512da4feb1c9a Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 20 Sep 2019 12:47:10 -0300 Subject: [PATCH] fix AUR missing deps text | showing app type in history dialog --- bauh/gems/arch/confirmation.py | 2 +- bauh/view/qt/history.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/gems/arch/confirmation.py b/bauh/gems/arch/confirmation.py index 98b85aee..2ca3df79 100644 --- a/bauh/gems/arch/confirmation.py +++ b/bauh/gems/arch/confirmation.py @@ -22,7 +22,7 @@ def request_optional_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatch def request_install_missing_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatcher, i18n: dict) -> bool: deps_str = ''.join(['
- {} ( {} )'.format(d, m.upper()) for d, m in pkg_mirrors.items()]) - msg = '

{}

'.format(i18n['arch.missing_deps.body'].format('{}'.format(pkgname) + ':
' + deps_str)) + msg = '

{}

'.format(i18n['arch.missing_deps.body'].format(bold(pkgname)) + ':
' + deps_str) msg += i18n['ask.continue'] return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg) diff --git a/bauh/view/qt/history.py b/bauh/view/qt/history.py index 504bfa90..89d51869 100644 --- a/bauh/view/qt/history.py +++ b/bauh/view/qt/history.py @@ -13,7 +13,7 @@ class HistoryDialog(QDialog): def __init__(self, history: PackageHistory, icon_cache: MemoryCache, locale_keys: dict): super(HistoryDialog, self).__init__() - self.setWindowTitle('{} - {} '.format(locale_keys['popup.history.title'], history.pkg.name)) + self.setWindowTitle('{} - {} ({})'.format(locale_keys['popup.history.title'], history.pkg.name, history.pkg.get_type())) layout = QVBoxLayout() self.setLayout(layout)