mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 15:34:15 +02:00
[aur] renaming settings's property 'pacman_dep_check' to 'simple_checking'
This commit is contained in:
@@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- 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 )
|
- 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
|
- AUR
|
||||||
- allowing the user to bypass checksum errors when installing / upgrading / downgrading packages
|
- allowing the user to bypass checksum errors when installing / upgrading / downgrading packages
|
||||||
- improved the way missing dependencies are verified when installing a new package ( the old way was not identifying some missing dependencies of **anbox-git**). It is possible to use the old algorithm ( only pacman-based ) by setting **pacman_dep_check** to **true** in **~/.config/bauh/arch.yml**
|
- improved how missing dependencies are checked when installing a new package ( the old way was not identifying some missing dependencies of **anbox-git** ). It is possible to use the old algorithm by setting **simple_checking** to **true** in **~/.config/bauh/arch.yml**. More information at [README](https://github.com/vinifmor/bauh/#aur--arch-).
|
||||||
- UI:
|
- UI:
|
||||||
- **Settings** available as a tray action as well
|
- **Settings** available as a tray action as well
|
||||||
- minor improvements
|
- minor improvements
|
||||||
|
|||||||
@@ -156,15 +156,17 @@ db_updater:
|
|||||||
|
|
||||||
b) same as previous, but related to **COMPRESSXZ** definition ( if '--threads=0' is not defined )
|
b) same as previous, but related to **COMPRESSXZ** definition ( if '--threads=0' is not defined )
|
||||||
|
|
||||||
|
c) **ccache** will be added to **BUILDENV** if it is installed on the system and already not defined
|
||||||
|
|
||||||
Obs: For more information about them, have a look at [Makepkg](https://wiki.archlinux.org/index.php/Makepkg)
|
Obs: For more information about them, have a look at [Makepkg](https://wiki.archlinux.org/index.php/Makepkg)
|
||||||
- During bauh initialization a full AUR normalized index is saved at **/tmp/bauh/arch/aur.txt**, and it will only be used if the AUR API cannot handle the number of matches for a given query.
|
- During bauh initialization a full AUR normalized index is saved at **/tmp/bauh/arch/aur.txt**, and it will only be used if the AUR API cannot handle the number of matches for a given query.
|
||||||
- If some of your installed packages are not categorized, send an e-mail to **bauh4linux@gmail.com** informing their names and categories in the following format: ```name=category1[,category2,category3,...]```
|
- If some of your installed packages are not categorized, send an e-mail to **bauh4linux@gmail.com** informing their names and categories in the following format: ```name=category1[,category2,category3,...]```
|
||||||
- The configuration file is located at **~/.config/bauh/arch.yml** and it allows the following customizations:
|
- The configuration file is located at **~/.config/bauh/arch.yml** and it allows the following customizations:
|
||||||
```
|
```
|
||||||
optimize: true # if 'false': disables the auto-compilation improvements
|
optimize: true # if 'false': disables the auto-compilation improvements
|
||||||
transitive_checking: true # if 'false': the dependency checking process will be faster, but the application will ask for a confirmation every time a not installed dependency is detected.
|
transitive_checking: true # this property defines if dependencies of a dependency should be retrieved before the package installation. It avoids interruptions, since it will detect all required dependencies before the process begin.
|
||||||
sync_databases: true # package databases synchronization once a day ( or every device reboot ) before the first package installation / upgrade / downgrade
|
sync_databases: true # package databases synchronization once a day ( or every device reboot ) before the first package installation / upgrade / downgrade
|
||||||
pacman_dep_check: false # this peroperty defines how missing dependencies checking should be performed. When 'false' a robust algorithm will be used, otherwise ('true') just a simple pacman check will be performed.
|
simple_checking: false # this property defines how the missing dependencies checking process should be done before installing a package. When set to 'false' an algorithm combining pacman's methods and AUR's API is used ( currently slower, but more accurate ), whereas 'false' relies only on pacman's methods ( faster. but currently not always accurate )
|
||||||
```
|
```
|
||||||
- Required dependencies:
|
- Required dependencies:
|
||||||
- **pacman**
|
- **pacman**
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ from bauh.gems.arch import CONFIG_FILE
|
|||||||
|
|
||||||
|
|
||||||
def read_config(update_file: bool = False) -> dict:
|
def read_config(update_file: bool = False) -> dict:
|
||||||
template = {'optimize': True, 'transitive_checking': True, "sync_databases": True, "pacman_dep_check": False}
|
template = {'optimize': True, 'transitive_checking': True, "sync_databases": True, "simple_checking": False}
|
||||||
return read(CONFIG_FILE, template, update_file=update_file)
|
return read(CONFIG_FILE, template, update_file=update_file)
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ class ArchManager(SoftwareManager):
|
|||||||
def _handle_deps_and_keys(self, pkgname: str, root_password: str, handler: ProcessHandler, pkgdir: str, check_subdeps: bool = True) -> bool:
|
def _handle_deps_and_keys(self, pkgname: str, root_password: str, handler: ProcessHandler, pkgdir: str, check_subdeps: bool = True) -> bool:
|
||||||
handler.watcher.change_substatus(self.i18n['arch.checking.deps'].format(bold(pkgname)))
|
handler.watcher.change_substatus(self.i18n['arch.checking.deps'].format(bold(pkgname)))
|
||||||
|
|
||||||
if not self.local_config['pacman_dep_check']:
|
if not self.local_config['simple_checking']:
|
||||||
ti = time.time()
|
ti = time.time()
|
||||||
with open('{}/.SRCINFO'.format(pkgdir)) as f:
|
with open('{}/.SRCINFO'.format(pkgdir)) as f:
|
||||||
srcinfo = aur.map_srcinfo(f.read())
|
srcinfo = aur.map_srcinfo(f.read())
|
||||||
@@ -615,7 +615,7 @@ class ArchManager(SoftwareManager):
|
|||||||
return self._handle_deps_and_keys(pkgname, root_password, handler, pkgdir, check_subdeps=False)
|
return self._handle_deps_and_keys(pkgname, root_password, handler, pkgdir, check_subdeps=False)
|
||||||
|
|
||||||
ti = time.time()
|
ti = time.time()
|
||||||
check_res = makepkg.check(pkgdir, optimize=self.local_config['optimize'], missing_deps=self.local_config['pacman_dep_check'], handler=handler)
|
check_res = makepkg.check(pkgdir, optimize=self.local_config['optimize'], missing_deps=self.local_config['simple_checking'], handler=handler)
|
||||||
|
|
||||||
if check_res:
|
if check_res:
|
||||||
if check_res.get('missing_deps'):
|
if check_res.get('missing_deps'):
|
||||||
@@ -1034,12 +1034,12 @@ class ArchManager(SoftwareManager):
|
|||||||
tooltip_key='arch.config.optimize.tip',
|
tooltip_key='arch.config.optimize.tip',
|
||||||
value=bool(config['optimize']),
|
value=bool(config['optimize']),
|
||||||
max_width=max_width),
|
max_width=max_width),
|
||||||
self._gen_bool_selector(id_='pacman_check',
|
self._gen_bool_selector(id_='simple_dep_check',
|
||||||
label_key='arch.config.pacman_check',
|
label_key='arch.config.simple_dep_check',
|
||||||
tooltip_key='arch.config.pacman_check.tip',
|
tooltip_key='arch.config.simple_dep_check.tip',
|
||||||
value=not bool(config['pacman_dep_check']),
|
value=bool(config['simple_checking']),
|
||||||
max_width=max_width),
|
max_width=max_width),
|
||||||
self._gen_bool_selector(id_='dep_check',
|
self._gen_bool_selector(id_='trans_dep_check',
|
||||||
label_key='arch.config.trans_dep_check',
|
label_key='arch.config.trans_dep_check',
|
||||||
tooltip_key='arch.config.trans_dep_check.tip',
|
tooltip_key='arch.config.trans_dep_check.tip',
|
||||||
value=bool(config['transitive_checking']),
|
value=bool(config['transitive_checking']),
|
||||||
@@ -1058,9 +1058,9 @@ class ArchManager(SoftwareManager):
|
|||||||
|
|
||||||
form_install = component.components[0]
|
form_install = component.components[0]
|
||||||
config['optimize'] = form_install.get_component('opts').get_selected()
|
config['optimize'] = form_install.get_component('opts').get_selected()
|
||||||
config['transitive_checking'] = form_install.get_component('dep_check').get_selected()
|
config['transitive_checking'] = form_install.get_component('trans_dep_check').get_selected()
|
||||||
config['sync_databases'] = form_install.get_component('sync_dbs').get_selected()
|
config['sync_databases'] = form_install.get_component('sync_dbs').get_selected()
|
||||||
config['pacman_dep_check'] = not form_install.get_component('pacman_check').get_selected()
|
config['simple_checking'] = form_install.get_component('simple_dep_check').get_selected()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
save_config(config, CONFIG_FILE)
|
save_config(config, CONFIG_FILE)
|
||||||
|
|||||||
@@ -111,5 +111,5 @@ arch.sync_databases.substatus=Synchronizing package databases
|
|||||||
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
||||||
arch.config.sync_dbs=Synchronize packages databases
|
arch.config.sync_dbs=Synchronize packages databases
|
||||||
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
||||||
arch.config.pacman_check=Robust dependency checking
|
arch.config.simple_dep_check=Verificació de dependències simples
|
||||||
arch.config.pacman_check.tip=Whether a more robust dependencies checking should be performed before installing a package. If disabled, only the one provided by pacman will be used.
|
arch.config.simple_dep_check.tip=Si només s'hauria d'utilitzar la verificació de dependència proporcionada per pacman abans d'instal·lar un paquet (més ràpid, però no sempre exacte). Si està desactivat, es farà una comprovació més completa (més lenta, però més precisa)
|
||||||
@@ -111,5 +111,5 @@ arch.sync_databases.substatus=Synchronizing package databases
|
|||||||
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
||||||
arch.config.sync_dbs=Synchronize packages databases
|
arch.config.sync_dbs=Synchronize packages databases
|
||||||
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
||||||
arch.config.pacman_check=Robust dependency checking
|
arch.config.simple_dep_check=Simple dependencies checking
|
||||||
arch.config.pacman_check.tip=Whether a more robust dependencies checking should be performed before installing a package. If disabled, only the one provided by pacman will be used.
|
arch.config.simple_dep_check.tip=If only the dependency checking provided by pacman should be used before installing a package ( faster, but not always accurate ). If disabled, a more complete checking will be performed ( slower, but more accurate )
|
||||||
@@ -111,5 +111,5 @@ arch.sync_databases.substatus=Synchronizing package databases
|
|||||||
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
||||||
arch.config.sync_dbs=Synchronize packages databases
|
arch.config.sync_dbs=Synchronize packages databases
|
||||||
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
||||||
arch.config.pacman_check=Robust dependency checking
|
arch.config.simple_dep_check=Simple dependencies checking
|
||||||
arch.config.pacman_check.tip=Whether a more robust dependencies checking should be performed before installing a package. If disabled, only the one provided by pacman will be used.
|
arch.config.simple_dep_check.tip=If only the dependency checking provided by pacman should be used before installing a package ( faster, but not always accurate ). If disabled, a more complete checking will be performed ( slower, but more accurate )
|
||||||
@@ -111,5 +111,5 @@ arch.sync_databases.substatus=Sincronizando bases de paquetes
|
|||||||
arch.sync_databases.substatus.error=No fue posible sincronizar la base de paquetes
|
arch.sync_databases.substatus.error=No fue posible sincronizar la base de paquetes
|
||||||
arch.config.sync_dbs=Sincronizar las bases de paquetes
|
arch.config.sync_dbs=Sincronizar las bases de paquetes
|
||||||
arch.config.sync_dbs.tip=Sincroniza las bases de paquetes una vez al día ( o cada reinicialización del dispositivo ) antes de la primera instalación, actualización o reversión de un paquete. Esta opción ayuda a prevenir errores durante estas operaciones.
|
arch.config.sync_dbs.tip=Sincroniza las bases de paquetes una vez al día ( o cada reinicialización del dispositivo ) antes de la primera instalación, actualización o reversión de un paquete. Esta opción ayuda a prevenir errores durante estas operaciones.
|
||||||
arch.config.pacman_check=Verificación de dependencia robusta
|
arch.config.simple_dep_check=Verificación de dependencias simples
|
||||||
arch.config.pacman_check.tip=Si se debe realizar una verificación de dependencias más sólida antes de instalar un paquete. Si desactivada, solo se utilizará la proporcionada por pacman.
|
arch.config.simple_dep_check.tip=Si solo se usara la verificación de dependencia provista por pacman antes de instalar un paquete (más rápido, pero no siempre exacto). Si está deshabilitado, se realizará una verificación más completa (más lenta, pero más precisa)
|
||||||
@@ -79,5 +79,5 @@ arch.sync_databases.substatus=Synchronizing package databases
|
|||||||
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
arch.sync_databases.substatus.error=It was not possible to synchronize the package database
|
||||||
arch.config.sync_dbs=Synchronize packages databases
|
arch.config.sync_dbs=Synchronize packages databases
|
||||||
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
arch.config.sync_dbs.tip=Synchronizes the package databases once a day ( or after a device reboot ) before the first package installation, upgrade or downgrade. This option help to prevent errors during these operations.
|
||||||
arch.config.pacman_check=Robust dependency checking
|
arch.config.simple_dep_check=Verifica delle dipendenze semplice
|
||||||
arch.config.pacman_check.tip=Whether a more robust dependencies checking should be performed before installing a package. If disabled, only the one provided by pacman will be used.
|
arch.config.simple_dep_check.tip=Se è necessario utilizzare solo la verifica della dipendenza fornita da pacman prima di installare un pacchetto (più veloce, ma non sempre accurato). Se disabilitato, verrà eseguito un controllo più completo (più lento, ma più accurato)
|
||||||
@@ -111,5 +111,5 @@ arch.sync_databases.substatus=Sincronizando bases de pacotes
|
|||||||
arch.sync_databases.substatus.error=Não foi possível sincronizar as bases de pacotes
|
arch.sync_databases.substatus.error=Não foi possível sincronizar as bases de pacotes
|
||||||
arch.config.sync_dbs=Sincronizar bases de pacotes
|
arch.config.sync_dbs=Sincronizar bases de pacotes
|
||||||
arch.config.sync_dbs.tip=Sincroniza as bases de pacotes uma vez ao dia ( ou a cada reinicialização do dispositivo ) antes da primeira instalação, atualização ou reversão de um pacote. Essa opção ajuda a evitar erros durante essa operações.
|
arch.config.sync_dbs.tip=Sincroniza as bases de pacotes uma vez ao dia ( ou a cada reinicialização do dispositivo ) antes da primeira instalação, atualização ou reversão de um pacote. Essa opção ajuda a evitar erros durante essa operações.
|
||||||
arch.config.pacman_check=Verificação de dependências robusta
|
arch.config.simple_dep_check=Verificação de dependências simples
|
||||||
arch.config.pacman_check.tip=Se uma verificação de dependências mais robusta deve ser realizada antes da instalação de um pacote. Caso desabilitada, somente a provida pelo pacman será utilizada.
|
arch.config.simple_dep_check.tip=Se somente a verificação de dependências provida pelo pacman deve ser usada antes de instalar um pacote ( mais rápida, porém nem sempre precisa ). Se desativada, uma verificação mais completa será realizada ( mais lenta, porém mais precisa )
|
||||||
|
|||||||
Reference in New Issue
Block a user