[aur] enabled by default

This commit is contained in:
Vinicius Moreira
2019-11-27 12:55:08 -03:00
parent 55e871151e
commit 7dda7eaa18
12 changed files with 42 additions and 25 deletions

View File

@@ -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/). 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 ### Improvements
- Not breaking the application when a i18n (translation) key was not found - 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 - 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 - 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**. - 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). (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) - Caching Snap and Flatpak suggestions [#23](https://github.com/vinifmor/bauh/issues/23)
- i18n: - i18n:
- Catalan contributions by [fitojb](https://github.com/fitojb) - Catalan contributions by [fitojb](https://github.com/fitojb)

View File

@@ -94,25 +94,6 @@ In order to autostart the application, use your Desktop Environment settings to
#### Snap ( snap ) #### Snap ( snap )
- The user is able to search, install, uninstall, refresh, launch and downgrade applications - 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 ) #### AppImage ( appimage )
- The user is able to search, install, uninstall, downgrade, launch and retrieve the applications history - 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** ) - 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. 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 ### General settings
You can change some application settings via environment variables or arguments (type ```bauh --help``` to get more information). You can change some application settings via environment variables or arguments (type ```bauh --help``` to get more information).

View File

@@ -747,7 +747,7 @@ class ArchManager(SoftwareManager):
return res return res
def is_default_enabled(self) -> bool: def is_default_enabled(self) -> bool:
return False return True
def launch(self, pkg: ArchPackage): def launch(self, pkg: ArchPackage):
if pkg.command: if pkg.command:

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR gem.arch.label=AUR
gem.arch.info=Els paquets AUR són mantinguts per una comunitat dusuaris independent. No hi ha cap garantia que funcionin o que no danyin el vostre sistema. gem.arch.info=Els paquets AUR són mantinguts per una comunitat dusuaris 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 dusuaris independent. No hi ha cap garantia que funcionin o que no danyin el vostre sistema.
aur.info.architecture=arquitectura aur.info.architecture=arquitectura
aur.info.architecture.any=qualsevol aur.info.architecture.any=qualsevol
aur.info.build date=data de compilació aur.info.build date=data de compilació

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR 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.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.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.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 arch.missing_deps.title=Fehlende Abhängigkeiten

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR 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.title=Conflict detected
arch.install.conflict.popup.body=The applications {} are in conflict. You must uninstall one to install the other. Continue ? 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 arch.missing_deps.title=Missing dependencies

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR 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.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=arquitectura
aur.info.architecture.any=cualquier aur.info.architecture.any=cualquier
aur.info.build date=fecha de construcción aur.info.build date=fecha de construcción

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR 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.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.title=Conflitto rilevato
arch.install.conflict.popup.body=Le applicazioni {} sono in conflitto. È necessario disinstallarne una per installare l'altra. Continua ? arch.install.conflict.popup.body=Le applicazioni {} sono in conflitto. È necessario disinstallarne una per installare l'altra. Continua ?
arch.missing_deps.title=Dipendenze mancanti arch.missing_deps.title=Dipendenze mancanti

View File

@@ -1,5 +1,6 @@
gem.arch.label=AUR 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.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=arquitetura
aur.info.architecture.any=qualquer aur.info.architecture.any=qualquer
aur.info.build date=data de construção aur.info.build date=data de construção

View File

@@ -1,3 +1,5 @@
from bauh.api.abstract.model import SuggestionPriority from bauh.api.abstract.model import SuggestionPriority
ALL = {'google-chrome': SuggestionPriority.HIGH} ALL = {'google-chrome': SuggestionPriority.HIGH,
'lutris-git': SuggestionPriority.LOW,
'xdman': SuggestionPriority.LOW}

View File

@@ -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...") self.logger.info("Arch packages compilation optimization is disabled. Aborting...")
else: else:
try: try:
ncpus = ceil(os.cpu_count() * 1.5) ncpus = os.cpu_count()
except: except:
self.logger.error('Could not determine the number of processors. Aborting...') self.logger.error('Could not determine the number of processors. Aborting...')
ncpus = None ncpus = None

View File

@@ -174,9 +174,16 @@ class AppsTable(QTableWidget):
def _install_app(self, pkgv: PackageView): 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( if dialog.ask_confirmation(
title=self.i18n['manage_window.apps_table.row.actions.install.popup.title'], 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): i18n=self.i18n):
self.window.install(pkgv) self.window.install(pkgv)
@@ -267,6 +274,7 @@ class AppsTable(QTableWidget):
elif pkg.model.can_be_installed(): elif pkg.model.can_be_installed():
def install(): def install():
self._install_app(pkg) self._install_app(pkg)
item = self._gen_row_button(self.i18n['install'].capitalize(), INSTALL_BT_STYLE.format(back='#088A08'), install) item = self._gen_row_button(self.i18n['install'].capitalize(), INSTALL_BT_STYLE.format(back='#088A08'), install)
else: else:
item = None item = None