mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 23:34:17 +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">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/vinifmor/bauh/staging/pictures/releases/0.9.4/version_ignored_updates.png">
|
<img src="https://raw.githubusercontent.com/vinifmor/bauh/staging/pictures/releases/0.9.4/version_ignored_updates.png">
|
||||||
</p>
|
</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
|
### Improvements
|
||||||
- Arch
|
- Arch
|
||||||
- faster caching data process during initialization
|
- faster caching data process during initialization
|
||||||
- i18n
|
- i18n
|
||||||
|
- AppImage
|
||||||
|
- Categories are now translated on the Info window
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Flatpak
|
- Flatpak
|
||||||
|
|||||||
@@ -334,6 +334,11 @@ class AppImageManager(SoftwareManager):
|
|||||||
if size:
|
if size:
|
||||||
data['size'] = 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
|
return data
|
||||||
|
|
||||||
def get_history(self, pkg: AppImage) -> PackageHistory:
|
def get_history(self, pkg: AppImage) -> PackageHistory:
|
||||||
|
|||||||
@@ -213,6 +213,14 @@ class GenericSoftwareManager(SoftwareManager):
|
|||||||
disk_loader.stop_working()
|
disk_loader.stop_working()
|
||||||
disk_loader.join()
|
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()
|
tf = time.time()
|
||||||
self.logger.info('Took {0:.2f} seconds'.format(tf - ti))
|
self.logger.info('Took {0:.2f} seconds'.format(tf - ti))
|
||||||
return res
|
return res
|
||||||
@@ -546,8 +554,17 @@ class GenericSoftwareManager(SoftwareManager):
|
|||||||
if manager:
|
if manager:
|
||||||
manager.ignore_update(pkg)
|
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):
|
def revert_ignored_update(self, pkg: SoftwarePackage):
|
||||||
manager = self._get_manager_for(pkg)
|
manager = self._get_manager_for(pkg)
|
||||||
|
|
||||||
if manager:
|
if manager:
|
||||||
manager.revert_ignored_update(pkg)
|
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.terminalemulator=terminal
|
||||||
category.text editor=editor de text
|
category.text editor=editor de text
|
||||||
category.texteditor=editor de text
|
category.texteditor=editor de text
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=utilitats
|
category.utilities=utilitats
|
||||||
category.utility=utilitat
|
category.utility=utilitat
|
||||||
category.vectorgraphics=gràfics vectorials
|
category.vectorgraphics=gràfics vectorials
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ category.system=system
|
|||||||
category.terminalemulator=Terminal
|
category.terminalemulator=Terminal
|
||||||
category.text editor=text editor
|
category.text editor=text editor
|
||||||
category.texteditor=Texteditor
|
category.texteditor=Texteditor
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=utilities
|
category.utilities=utilities
|
||||||
category.utility=utility
|
category.utility=utility
|
||||||
category.vectorgraphics=Vektorgrafik
|
category.vectorgraphics=Vektorgrafik
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ category.system=system
|
|||||||
category.terminalemulator=terminal
|
category.terminalemulator=terminal
|
||||||
category.text editor=text editor
|
category.text editor=text editor
|
||||||
category.texteditor=text editor
|
category.texteditor=text editor
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=utilities
|
category.utilities=utilities
|
||||||
category.utility=utility
|
category.utility=utility
|
||||||
category.vectorgraphics=vector graphics
|
category.vectorgraphics=vector graphics
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ category.system=sistema
|
|||||||
category.terminalemulator=terminal
|
category.terminalemulator=terminal
|
||||||
category.text editor=text editor
|
category.text editor=text editor
|
||||||
category.texteditor=editor de texto
|
category.texteditor=editor de texto
|
||||||
|
category.updates_ignored=Actualizaciones ignoradas
|
||||||
category.utilities=utilidades
|
category.utilities=utilidades
|
||||||
category.utility=utilidad
|
category.utility=utilidad
|
||||||
category.vectorgraphics=gráficos vectoriales
|
category.vectorgraphics=gráficos vectoriales
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ category.system=system
|
|||||||
category.terminalemulator=terminale
|
category.terminalemulator=terminale
|
||||||
category.text editor=text editor
|
category.text editor=text editor
|
||||||
category.texteditor=editor di testo
|
category.texteditor=editor di testo
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=utilities
|
category.utilities=utilities
|
||||||
category.utility=utility
|
category.utility=utility
|
||||||
category.vectorgraphics=grafica vettoriale
|
category.vectorgraphics=grafica vettoriale
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ category.system=sistema
|
|||||||
category.terminalemulator=terminal
|
category.terminalemulator=terminal
|
||||||
category.text editor=editor de texto
|
category.text editor=editor de texto
|
||||||
category.texteditor=editor de texto
|
category.texteditor=editor de texto
|
||||||
|
category.updates_ignored=Atualizações ignoradas
|
||||||
category.utilities=utilidades
|
category.utilities=utilidades
|
||||||
category.utility=utilidade
|
category.utility=utilidade
|
||||||
category.vectorgraphics=gráficos vetoriais
|
category.vectorgraphics=gráficos vetoriais
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ category.system=system
|
|||||||
category.terminalemulator=Эмулятор терминала
|
category.terminalemulator=Эмулятор терминала
|
||||||
category.text editor=text editor
|
category.text editor=text editor
|
||||||
category.texteditor=Текстовый редактор
|
category.texteditor=Текстовый редактор
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=utilities
|
category.utilities=utilities
|
||||||
category.utility=utility
|
category.utility=utility
|
||||||
category.vectorgraphics=Векторная графика
|
category.vectorgraphics=Векторная графика
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ category.system=sistem
|
|||||||
category.terminalemulator=uçbirim
|
category.terminalemulator=uçbirim
|
||||||
category.text editor=metin düzenleyici
|
category.text editor=metin düzenleyici
|
||||||
category.texteditor=metin düzenleyici
|
category.texteditor=metin düzenleyici
|
||||||
|
category.updates_ignored=Updates ignored
|
||||||
category.utilities=bileşenler
|
category.utilities=bileşenler
|
||||||
category.utility=bileşenler
|
category.utility=bileşenler
|
||||||
category.vectorgraphics=vektör grafikler
|
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