mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 19:44:15 +02:00
[fix][arch] file not found error while organizing the data of installed packages
This commit is contained in:
@@ -12,6 +12,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- the dialog is now displayed before the upgrading process (but the operation is only executed after a successful upgrade)
|
- the dialog is now displayed before the upgrading process (but the operation is only executed after a successful upgrade)
|
||||||
- Settings
|
- Settings
|
||||||
- new option to disable the reboot dialog after a successful upgrade (`updates.ask_for_reboot`)
|
- new option to disable the reboot dialog after a successful upgrade (`updates.ask_for_reboot`)
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Arch
|
||||||
|
- file not found error while organizing the data of installed packages [#101](https://github.com/vinifmor/bauh/issues/101)
|
||||||
|
|
||||||
### UI
|
### UI
|
||||||
- icons, buttons and colors changes
|
- icons, buttons and colors changes
|
||||||
- removed more unnecessary **x** buttons from some dialogs
|
- removed more unnecessary **x** buttons from some dialogs
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ def save_several(pkgnames: Iterable[str], repo_map: Dict[str, str], overwrite: b
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
for f in desktop_files:
|
for f in desktop_files:
|
||||||
if ends_with.match(f):
|
if ends_with.match(f) and os.path.isfile(f):
|
||||||
desktop_matches[pkg] = f
|
desktop_matches[pkg] = f
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -82,13 +82,14 @@ def save_several(pkgnames: Iterable[str], repo_map: Dict[str, str], overwrite: b
|
|||||||
entries = pacman.list_desktop_entries({pkg})
|
entries = pacman.list_desktop_entries({pkg})
|
||||||
|
|
||||||
if entries:
|
if entries:
|
||||||
desktop_matches[pkg] = entries[0]
|
|
||||||
|
|
||||||
if len(entries) > 1:
|
if len(entries) > 1:
|
||||||
for e in entries:
|
for e in entries:
|
||||||
if e.startswith('/usr/share/applications'):
|
if e.startswith('/usr/share/applications') and os.path.isfile(e):
|
||||||
desktop_matches[pkg] = e
|
desktop_matches[pkg] = e
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
if os.path.isfile(entries[0]):
|
||||||
|
desktop_matches[pkg] = entries[0]
|
||||||
|
|
||||||
if not desktop_matches:
|
if not desktop_matches:
|
||||||
no_desktop_files = to_cache
|
no_desktop_files = to_cache
|
||||||
|
|||||||
Reference in New Issue
Block a user