mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[arch] fix -> info window: not displaying all installed files
This commit is contained in:
@@ -4,6 +4,11 @@ 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.9.8]
|
||||||
|
### Fixes
|
||||||
|
- Arch
|
||||||
|
- info window: not displaying all installed files
|
||||||
|
|
||||||
## [0.9.7] 2020-09-11
|
## [0.9.7] 2020-09-11
|
||||||
### Features
|
### Features
|
||||||
- Arch
|
- Arch
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = '0.9.7'
|
__version__ = '0.9.8'
|
||||||
__app_name__ = 'bauh'
|
__app_name__ = 'bauh'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -178,17 +178,19 @@ def map_desktop_files(*pkgnames) -> Dict[str, List[str]]:
|
|||||||
|
|
||||||
|
|
||||||
def list_installed_files(pkgname: str) -> List[str]:
|
def list_installed_files(pkgname: str) -> List[str]:
|
||||||
installed_files = new_subprocess(['pacman', '-Qlq', pkgname])
|
installed_files = run_cmd('pacman -Qlq {}'.format(pkgname), print_error=False)
|
||||||
|
|
||||||
f_paths = []
|
paths = []
|
||||||
|
|
||||||
for out in new_subprocess(['grep', '-E', '/.+\..+[^/]$'], stdin=installed_files.stdout).stdout:
|
if installed_files:
|
||||||
if out:
|
for f in installed_files.split('\n'):
|
||||||
line = out.decode().strip()
|
if f:
|
||||||
if line:
|
f_strip = f.strip()
|
||||||
f_paths.append(line)
|
|
||||||
|
|
||||||
return f_paths
|
if f_strip and not f_strip.endswith('/'):
|
||||||
|
paths.append(f_strip)
|
||||||
|
|
||||||
|
return paths
|
||||||
|
|
||||||
|
|
||||||
def verify_pgp_key(key: str) -> bool:
|
def verify_pgp_key(key: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user