Installed files of AUR packages available in the Info window

This commit is contained in:
Vinicius Moreira
2019-09-30 10:45:09 -03:00
parent 39266d86ce
commit baf85d1be1
7 changed files with 27 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.6.2] 2019-09- ## [0.6.2] 2019-09-
### Improvements ### Improvements
- Installed files of AUR packages available in the Info window
- Update notifications showing the number of updates by type as well - Update notifications showing the number of updates by type as well
- Improving Arch distro checking - Improving Arch distro checking

View File

@@ -1,11 +1,9 @@
## bauh
**bauh** ( ba-oo ) is a graphical user interface to manage your Linux applications ( packages ) ( old **fpakman** ). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see **bauh** ( ba-oo ) is a graphical user interface to manage your Linux applications ( packages ) ( old **fpakman** ). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see
a management panel where you can search, update, install, uninstall and launch applications. You can also downgrade some applications depending on the package technology. a management panel where you can search, update, install, uninstall and launch applications. You can also downgrade some applications depending on the package technology.
It has a **tray mode** (see **Settings** below) that attaches the application icon to the system tray providing a quick way to launch it. Also the icon will get red when updates are available. It has a **tray mode** (see **Settings** below) that attaches the application icon to the system tray providing a quick way to launch it. Also the icon will get red when updates are available.
This project has an official Twitter account ( **@bauh4linux**) so people can stay on top of its news. This project has an official Twitter account ( **@bauh4linux** ) so people can stay on top of its news.
### Developed with: ### Developed with:
- Python3 and Qt5. - Python3 and Qt5.
@@ -94,7 +92,7 @@ You can change some application settings via environment variables or arguments
- It is **not enabled by default** - It is **not enabled by default**
- The user is able to search, install, uninstall, downgrade, launch and retrieve the packages history - 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 ) - 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 - 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 ). will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings ).
- Automatically makes simple package compilation improvements - Automatically makes simple package compilation improvements

View File

@@ -270,6 +270,8 @@ class ArchManager(SoftwareManager):
if pkg.pkgbuild: if pkg.pkgbuild:
info['13_pkg_build'] = pkg.pkgbuild info['13_pkg_build'] = pkg.pkgbuild
info['14_installed_files'] = pacman.list_installed_files(pkg.name)
return info return info
else: else:
info = { info = {
@@ -295,7 +297,7 @@ class ArchManager(SoftwareManager):
info['12_optdepends'] = srcinfo['optdepends'] info['12_optdepends'] = srcinfo['optdepends']
if pkg.pkgbuild: if pkg.pkgbuild:
info['13_pkg_build'] = pkg.pkgbuild info['00_pkg_build'] = pkg.pkgbuild
else: else:
info['11_pkg_build_url'] = pkg.get_pkg_build_url() info['11_pkg_build_url'] = pkg.get_pkg_build_url()

View File

@@ -150,6 +150,20 @@ def list_bin_paths(pkgnames: Set[str]) -> List[str]:
return bin_paths return bin_paths
def list_installed_files(pkgname: str) -> List[str]:
installed_files = new_subprocess(['pacman', '-Qlq', pkgname])
f_paths = []
for out in new_subprocess(['grep', '-E', '/.+\..+[^/]$'], stdin=installed_files.stdout).stdout:
if out:
line = out.decode().strip()
if line:
f_paths.append(line)
return f_paths
def verify_pgp_key(key: str) -> bool: def verify_pgp_key(key: str) -> bool:
list_key = new_subprocess(['pacman-key', '-l']).stdout list_key = new_subprocess(['pacman-key', '-l']).stdout
@@ -168,3 +182,4 @@ def receive_key(key: str, root_password: str) -> SystemProcess:
def sign_key(key: str, root_password: str) -> SystemProcess: def sign_key(key: str, root_password: str) -> SystemProcess:
return SystemProcess(new_root_subprocess(['pacman-key', '--lsign-key', key], root_password=root_password), check_error_output=False) return SystemProcess(new_root_subprocess(['pacman-key', '--lsign-key', key], root_password=root_password), check_error_output=False)

View File

@@ -22,6 +22,7 @@ arch.clone=Cloning the AUR repository {}
arch.downgrade.reading_commits=Reading the repository commits arch.downgrade.reading_commits=Reading the repository commits
arch.downgrade.version_found=Current package version found arch.downgrade.version_found=Current package version found
arch.downgrade.install_older=Installing older version arch.downgrade.install_older=Installing older version
aur.info.00_pkg_build=pkgbuild
aur.info.01_id=id aur.info.01_id=id
aur.info.02_name=name aur.info.02_name=name
aur.info.03_version=version aur.info.03_version=version
@@ -36,6 +37,7 @@ aur.info.11_pkg_build_url=url pkgbuild
aur.info.13_pkg_build=pkgbuild aur.info.13_pkg_build=pkgbuild
aur.info.11_dependson=dependencies aur.info.11_dependson=dependencies
aur.info.12_optdepends=optional dependencies aur.info.12_optdepends=optional dependencies
aur.info.14_installed_files=Installed files
arch.install.dep_not_found.title=Dependency not found arch.install.dep_not_found.title=Dependency not found
arch.install.dep_not_found.body=Required dependency {} was not found in AUR nor in default mirrors. Installation cancelled. arch.install.dep_not_found.body=Required dependency {} was not found in AUR nor in default mirrors. Installation cancelled.
arch.install.dependency.install=Installing package dependency {} arch.install.dependency.install=Installing package dependency {}

View File

@@ -54,6 +54,7 @@ arch.clone=Clonando el repositorio {} de AUR
arch.downgrade.reading_commits=Leyendo los commits del repositorio arch.downgrade.reading_commits=Leyendo los commits del repositorio
arch.downgrade.version_found=Version actual del paquete encontrada arch.downgrade.version_found=Version actual del paquete encontrada
arch.downgrade.install_older=Instalando versión anterior arch.downgrade.install_older=Instalando versión anterior
aur.info.00_pkg_build=pkgbuild
aur.info.01_id=id aur.info.01_id=id
aur.info.02_name=nombre aur.info.02_name=nombre
aur.info.03_version=versión aur.info.03_version=versión
@@ -68,6 +69,7 @@ aur.info.11_pkg_build_url=url pkgbuild
aur.info.13_pkg_build=pkgbuild aur.info.13_pkg_build=pkgbuild
aur.info.11_dependson=dependencias aur.info.11_dependson=dependencias
aur.info.12_optdepends=dependencias opcionales aur.info.12_optdepends=dependencias opcionales
aur.info.14_installed_files=Archivos instalados
arch.install.dep_not_found.title=Dependencia no encontrada arch.install.dep_not_found.title=Dependencia no encontrada
arch.install.dep_not_found.body=No se encontró la dependencia requerida {} en AUR ni en los espejos predeterminados. Instalación cancelada. arch.install.dep_not_found.body=No se encontró la dependencia requerida {} en AUR ni en los espejos predeterminados. Instalación cancelada.
arch.install.dependency.install=Instalando el paquete dependiente {} arch.install.dependency.install=Instalando el paquete dependiente {}

View File

@@ -54,6 +54,7 @@ arch.clone=Clonando o repositório {} do AUR
arch.downgrade.reading_commits=Lendo os commits do repositório arch.downgrade.reading_commits=Lendo os commits do repositório
arch.downgrade.version_found=Versão atual do pacote encontrada arch.downgrade.version_found=Versão atual do pacote encontrada
arch.downgrade.install_older=Instalando versão anterior arch.downgrade.install_older=Instalando versão anterior
aur.info.00_pkg_build=pkgbuild
aur.info.01_id=id aur.info.01_id=id
aur.info.02_name=nome aur.info.02_name=nome
aur.info.03_version=versão aur.info.03_version=versão
@@ -68,6 +69,7 @@ aur.info.11_pkg_build_url=url pkgbuild
aur.info.13_pkg_build=pkgbuild aur.info.13_pkg_build=pkgbuild
aur.info.11_dependson=dependências aur.info.11_dependson=dependências
aur.info.12_optdepends=dependências opcionais aur.info.12_optdepends=dependências opcionais
aur.info.14_installed_files=Arquivos instalados
arch.install.dep_not_found.title=Dependência não encontrada arch.install.dep_not_found.title=Dependência não encontrada
arch.install.dep_not_found.body=A dependência {} não foi encontrado no AUR nem nos espelhos padrões. Instalação cancelada. arch.install.dep_not_found.body=A dependência {} não foi encontrado no AUR nem nos espelhos padrões. Instalação cancelada.
arch.install.dependency.install=Instalando o pacote dependente {} arch.install.dependency.install=Instalando o pacote dependente {}