mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[aur] enabled by default
This commit is contained in:
@@ -4,7 +4,7 @@ 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.7.3] 2019-
|
||||
## [0.7.3] 2019-11
|
||||
### Improvements
|
||||
- Not breaking the application when a i18n (translation) key was not found
|
||||
- Adding all english (**en**) i18n keys to help people with the application translation
|
||||
@@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- AUR
|
||||
- The optimized **makepkg.conf** file is now generated at **~/.config/bauh/arch/makepkg.conf** and passed as a parameter during package builds to not provoke the auto-merge of **/etc/makepkg.conf** and the old generated **~/.makepkg.conf**.
|
||||
(P.S: if your **~/.makepkg.conf** was generated by bauh, consider deleting it as it will be useless for bauh now and may impact your other Arch compilation tools). Behavior discussed in [#30](https://github.com/vinifmor/bauh/issues/30).
|
||||
- Now AUR packages are enabled by default, but a warning is displayed in the installation dialog
|
||||
- New package suggestions
|
||||
- Caching Snap and Flatpak suggestions [#23](https://github.com/vinifmor/bauh/issues/23)
|
||||
- i18n:
|
||||
- Catalan contributions by [fitojb](https://github.com/fitojb)
|
||||
|
||||
37
README.md
37
README.md
@@ -94,25 +94,6 @@ In order to autostart the application, use your Desktop Environment settings to
|
||||
#### Snap ( snap )
|
||||
- The user is able to search, install, uninstall, refresh, launch and downgrade applications
|
||||
|
||||
#### AUR ( arch )
|
||||
- It is **not enabled by default**
|
||||
- The user is able to search, install, uninstall, downgrade, launch and retrieve the packages history
|
||||
- It handles conflicts, and missing / optional packages installations ( including from your distro mirrors )
|
||||
- If [**aria2**](https://github.com/aria2/aria2) is installed on your system and multi-threaded downloads are enabled ( see **BAUH_DOWNLOAD_MULTITHREAD** ), the source packages
|
||||
will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings ).
|
||||
- Automatically makes simple package compilation improvements:
|
||||
|
||||
a) if **MAKEFLAGS** is not set in **/etc/makepkg.conf** and **~/.makepkg.conf** does not exist,
|
||||
then a copy of **/etc/makepkg.conf** will be generated at **~/.makepkg.conf** defining MAKEFLAGS to work with
|
||||
the number of your machine processors (**-j${nproc}**).
|
||||
|
||||
b) same as previous, but related to **COMPRESSXZ** definition ( if '--threads=0' is not defined )
|
||||
|
||||
Obs: this feature can be disabled through the environment variable **BAUH_ARCH_OPTIMIZE=0**
|
||||
( For more information about these optimizations, check: https://wiki.archlinux.org/index.php/Makepkg )
|
||||
- Arch package memory-indexer running every 20 minutes. This memory index is used when AUR Api cannot handle the amount of results found for a given search. It can be disabled via the environment variable **BAUH_ARCH_AUR_INDEX_UPDATER=0**.
|
||||
- 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,...]```
|
||||
|
||||
#### AppImage ( appimage )
|
||||
- The user is able to search, install, uninstall, downgrade, launch and retrieve the applications history
|
||||
- Supported sources: [AppImageHub](https://appimage.github.io) ( **applications with no releases published to GitHub are currently not available** )
|
||||
@@ -125,6 +106,24 @@ will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings
|
||||
|
||||
Obs: There are some crashes when **AppImageLauncher** is installed. It is advisable to uninstall it and reboot the system before trying to install an AppImage application.
|
||||
|
||||
#### AUR ( arch )
|
||||
- The user is able to search, install, uninstall, downgrade, launch and retrieve the packages history
|
||||
- It handles conflicts, and missing / optional packages installations ( including from your distro mirrors )
|
||||
- If [**aria2**](https://github.com/aria2/aria2) is installed on your system and multi-threaded downloads are enabled ( see **BAUH_DOWNLOAD_MULTITHREAD** ), the source packages
|
||||
will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings ).
|
||||
- Automatically makes simple package compilation improvements:
|
||||
|
||||
a) if **MAKEFLAGS** is not set in **/etc/makepkg.conf**,
|
||||
then a copy of **/etc/makepkg.conf** will be generated at **~/.config/bauh/arch/makepkg.conf** defining MAKEFLAGS to work with
|
||||
the number of your machine processors (**-j${nproc}**).
|
||||
|
||||
b) same as previous, but related to **COMPRESSXZ** definition ( if '--threads=0' is not defined )
|
||||
|
||||
Obs: this feature can be disabled through the environment variable **BAUH_ARCH_OPTIMIZE=0**
|
||||
( For more information about these optimizations, have a look at [Makepkg](https://wiki.archlinux.org/index.php/Makepkg)
|
||||
- Arch package memory-indexer running every 20 minutes. This memory index is used when AUR Api cannot handle the amount of results found for a given search. It can be disabled via the environment variable **BAUH_ARCH_AUR_INDEX_UPDATER=0**.
|
||||
- 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,...]```
|
||||
|
||||
|
||||
### General settings
|
||||
You can change some application settings via environment variables or arguments (type ```bauh --help``` to get more information).
|
||||
|
||||
@@ -747,7 +747,7 @@ class ArchManager(SoftwareManager):
|
||||
return res
|
||||
|
||||
def is_default_enabled(self) -> bool:
|
||||
return False
|
||||
return True
|
||||
|
||||
def launch(self, pkg: ArchPackage):
|
||||
if pkg.command:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=Els paquets AUR són mantinguts per una comunitat d’usuaris independent. No hi ha cap garantia que funcionin o que no danyin el vostre sistema.
|
||||
gem.aur.install.warning=Els paquets AUR són mantinguts per una comunitat d’usuaris independent. No hi ha cap garantia que funcionin o que no danyin el vostre sistema.
|
||||
aur.info.architecture=arquitectura
|
||||
aur.info.architecture.any=qualsevol
|
||||
aur.info.build date=data de compilació
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=AUR Pakete werden von einer unabhängigen Nutzergemeinschaft geflegt. Es keine Garantie das sie funktionieren oder kein Schaden verursachen.
|
||||
gem.aur.install.warning=AUR Pakete werden von einer unabhängigen Nutzergemeinschaft geflegt. Es keine Garantie das sie funktionieren oder kein Schaden verursachen.
|
||||
arch.install.conflict.popup.title=Konflikt entdeckt
|
||||
arch.install.conflict.popup.body=Die Anwendungen {} können nicht gleichzeitig installiert sein. Du musst eine deinstallieren um die andere zu installieren. Fortfahren?
|
||||
arch.missing_deps.title=Fehlende Abhängigkeiten
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=AUR packages are maintained by an independent user community. There is no warranty that they will work or not harm you system.
|
||||
gem.arch.info=AUR packages are maintained by an independent user community. There is no warranty that they will work or not harm your system.
|
||||
gem.aur.install.warning=AUR packages are maintained by an independent user community. There is no warranty that they will work or not harm your system.
|
||||
arch.install.conflict.popup.title=Conflict detected
|
||||
arch.install.conflict.popup.body=The applications {} are in conflict. You must uninstall one to install the other. Continue ?
|
||||
arch.missing_deps.title=Missing dependencies
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=Los paquetes AUR son mantenidos por una comunidad de usuarios independiente. No hay garantía de que funcionen o que no dañen su sistema.
|
||||
gem.aur.install.warning=Los paquetes AUR son mantenidos por una comunidad de usuarios independiente. No hay garantía de que funcionen o que no dañen su sistema.
|
||||
aur.info.architecture=arquitectura
|
||||
aur.info.architecture.any=cualquier
|
||||
aur.info.build date=fecha de construcción
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=I pacchetti AUR sono gestiti da una comunità di utenti indipendenti. Non esiste alcuna garanzia che funzionino o non danneggino il sistema.
|
||||
gem.aur.install.warning=I pacchetti AUR sono gestiti da una comunità di utenti indipendenti. Non esiste alcuna garanzia che funzionino o non danneggino il sistema.
|
||||
arch.install.conflict.popup.title=Conflitto rilevato
|
||||
arch.install.conflict.popup.body=Le applicazioni {} sono in conflitto. È necessario disinstallarne una per installare l'altra. Continua ?
|
||||
arch.missing_deps.title=Dipendenze mancanti
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
gem.arch.label=AUR
|
||||
gem.arch.info=Pacotes do AUR são mantidos por uma comunidade de usuários independente. Não há garantia que funcionarão ou que não prejudicarão o seus sistema.
|
||||
gem.aur.install.warning=Pacotes do AUR são mantidos por uma comunidade de usuários independente. Não há garantia que funcionarão ou que não prejudicarão o seus sistema.
|
||||
aur.info.architecture=arquitetura
|
||||
aur.info.architecture.any=qualquer
|
||||
aur.info.build date=data de construção
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from bauh.api.abstract.model import SuggestionPriority
|
||||
|
||||
ALL = {'google-chrome': SuggestionPriority.HIGH}
|
||||
ALL = {'google-chrome': SuggestionPriority.HIGH,
|
||||
'lutris-git': SuggestionPriority.LOW,
|
||||
'xdman': SuggestionPriority.LOW}
|
||||
|
||||
@@ -83,7 +83,7 @@ class ArchCompilationOptimizer(Thread if bool(os.getenv('BAUH_DEBUG', 0)) else P
|
||||
self.logger.info("Arch packages compilation optimization is disabled. Aborting...")
|
||||
else:
|
||||
try:
|
||||
ncpus = ceil(os.cpu_count() * 1.5)
|
||||
ncpus = os.cpu_count()
|
||||
except:
|
||||
self.logger.error('Could not determine the number of processors. Aborting...')
|
||||
ncpus = None
|
||||
|
||||
@@ -174,9 +174,16 @@ class AppsTable(QTableWidget):
|
||||
|
||||
def _install_app(self, pkgv: PackageView):
|
||||
|
||||
body = self.i18n['manage_window.apps_table.row.actions.install.popup.body'].format(self._bold(str(pkgv)))
|
||||
|
||||
warning = self.i18n.get('gem.{}.install.warning'.format(pkgv.model.get_type().lower()))
|
||||
|
||||
if warning:
|
||||
body += '<br/><br/> {}'.format('<br/>'.join(('{}.'.format(phrase) for phrase in warning.split('.') if phrase)))
|
||||
|
||||
if dialog.ask_confirmation(
|
||||
title=self.i18n['manage_window.apps_table.row.actions.install.popup.title'],
|
||||
body=self._parag(self.i18n['manage_window.apps_table.row.actions.install.popup.body'].format(self._bold(str(pkgv)))),
|
||||
body=self._parag(body),
|
||||
i18n=self.i18n):
|
||||
|
||||
self.window.install(pkgv)
|
||||
@@ -267,6 +274,7 @@ class AppsTable(QTableWidget):
|
||||
elif pkg.model.can_be_installed():
|
||||
def install():
|
||||
self._install_app(pkg)
|
||||
|
||||
item = self._gen_row_button(self.i18n['install'].capitalize(), INSTALL_BT_STYLE.format(back='#088A08'), install)
|
||||
else:
|
||||
item = None
|
||||
|
||||
Reference in New Issue
Block a user