mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 05:54:15 +02:00
[improvement][ui] new 'updates ignored' category to filter packages with ignored updates
This commit is contained in:
@@ -18,12 +18,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/vinifmor/bauh/staging/pictures/releases/0.9.4/version_ignored_updates.png">
|
||||
</p>
|
||||
- It is possible to filter all you packages with updates ignored through the new category **Updates ignored**
|
||||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/vinifmor/bauh/staging/pictures/releases/0.9.4/updates_ignored_category.png">
|
||||
</p>
|
||||
|
||||
|
||||
### Improvements
|
||||
- Arch
|
||||
- faster caching data process during initialization
|
||||
- i18n
|
||||
- AppImage
|
||||
- Categories are now translated on the Info window
|
||||
|
||||
### Fixes
|
||||
- Flatpak
|
||||
|
||||
@@ -334,6 +334,11 @@ class AppImageManager(SoftwareManager):
|
||||
if size:
|
||||
data['size'] = size
|
||||
|
||||
categories = data.get('categories')
|
||||
|
||||
if categories:
|
||||
data['categories'] = [self.i18n.get('category.{}'.format(c.lower()), self.i18n.get(c, c)).capitalize() for c in data['categories']]
|
||||
|
||||
return data
|
||||
|
||||
def get_history(self, pkg: AppImage) -> PackageHistory:
|
||||
|
||||
@@ -213,6 +213,14 @@ class GenericSoftwareManager(SoftwareManager):
|
||||
disk_loader.stop_working()
|
||||
disk_loader.join()
|
||||
|
||||
if res.installed:
|
||||
for p in res.installed:
|
||||
if p.is_update_ignored():
|
||||
if p.categories is None:
|
||||
p.categories = ['updates_ignored']
|
||||
elif 'updates_ignored' not in p.categories:
|
||||
p.categories.append('updates_ignored')
|
||||
|
||||
tf = time.time()
|
||||
self.logger.info('Took {0:.2f} seconds'.format(tf - ti))
|
||||
return res
|
||||
@@ -546,8 +554,17 @@ class GenericSoftwareManager(SoftwareManager):
|
||||
if manager:
|
||||
manager.ignore_update(pkg)
|
||||
|
||||
if pkg.is_update_ignored():
|
||||
if pkg.categories is None:
|
||||
pkg.categories = ['updates_ignored']
|
||||
elif 'updates_ignored' not in pkg.categories:
|
||||
pkg.categories.append('updates_ignored')
|
||||
|
||||
def revert_ignored_update(self, pkg: SoftwarePackage):
|
||||
manager = self._get_manager_for(pkg)
|
||||
|
||||
if manager:
|
||||
manager.revert_ignored_update(pkg)
|
||||
|
||||
if not pkg.is_update_ignored() and pkg.categories and 'updates_ignored' in pkg.categories:
|
||||
pkg.categories.remove('updates_ignored')
|
||||
|
||||
@@ -162,6 +162,7 @@ category.system=sistema
|
||||
category.terminalemulator=terminal
|
||||
category.text editor=editor de text
|
||||
category.texteditor=editor de text
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=utilitats
|
||||
category.utility=utilitat
|
||||
category.vectorgraphics=gràfics vectorials
|
||||
|
||||
@@ -161,6 +161,7 @@ category.system=system
|
||||
category.terminalemulator=Terminal
|
||||
category.text editor=text editor
|
||||
category.texteditor=Texteditor
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=utilities
|
||||
category.utility=utility
|
||||
category.vectorgraphics=Vektorgrafik
|
||||
|
||||
@@ -160,6 +160,7 @@ category.system=system
|
||||
category.terminalemulator=terminal
|
||||
category.text editor=text editor
|
||||
category.texteditor=text editor
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=utilities
|
||||
category.utility=utility
|
||||
category.vectorgraphics=vector graphics
|
||||
|
||||
@@ -162,6 +162,7 @@ category.system=sistema
|
||||
category.terminalemulator=terminal
|
||||
category.text editor=text editor
|
||||
category.texteditor=editor de texto
|
||||
category.updates_ignored=Actualizaciones ignoradas
|
||||
category.utilities=utilidades
|
||||
category.utility=utilidad
|
||||
category.vectorgraphics=gráficos vectoriales
|
||||
|
||||
@@ -161,6 +161,7 @@ category.system=system
|
||||
category.terminalemulator=terminale
|
||||
category.text editor=text editor
|
||||
category.texteditor=editor di testo
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=utilities
|
||||
category.utility=utility
|
||||
category.vectorgraphics=grafica vettoriale
|
||||
|
||||
@@ -160,6 +160,7 @@ category.system=sistema
|
||||
category.terminalemulator=terminal
|
||||
category.text editor=editor de texto
|
||||
category.texteditor=editor de texto
|
||||
category.updates_ignored=Atualizações ignoradas
|
||||
category.utilities=utilidades
|
||||
category.utility=utilidade
|
||||
category.vectorgraphics=gráficos vetoriais
|
||||
|
||||
@@ -161,6 +161,7 @@ category.system=system
|
||||
category.terminalemulator=Эмулятор терминала
|
||||
category.text editor=text editor
|
||||
category.texteditor=Текстовый редактор
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=utilities
|
||||
category.utility=utility
|
||||
category.vectorgraphics=Векторная графика
|
||||
|
||||
@@ -160,6 +160,7 @@ category.system=sistem
|
||||
category.terminalemulator=uçbirim
|
||||
category.text editor=metin düzenleyici
|
||||
category.texteditor=metin düzenleyici
|
||||
category.updates_ignored=Updates ignored
|
||||
category.utilities=bileşenler
|
||||
category.utility=bileşenler
|
||||
category.vectorgraphics=vektör grafikler
|
||||
|
||||
BIN
pictures/releases/0.9.4/updates_ignored_category.png
Normal file
BIN
pictures/releases/0.9.4/updates_ignored_category.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user