mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[arch] fix: not updating the view (GUI) status correctly after uninstalling a package whose PKGBUILD file was edited
This commit is contained in:
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
### Fixes
|
||||
- Arch
|
||||
- not updating the view (GUI) status correctly after uninstalling a package whose PKGBUILD file was edited (specifically the **name**)
|
||||
- missing error handling when hard requirements for optional dependencies cannot be found by pacman
|
||||
|
||||
## [0.9.22] 2021-11-30
|
||||
|
||||
@@ -1457,7 +1457,14 @@ class ArchManager(SoftwareManager):
|
||||
names={pkg.name},
|
||||
disk_loader=disk_loader) # to be able to return all uninstalled packages
|
||||
if success:
|
||||
return TransactionResult(success=True, installed=None, removed=[*removed.values()] if removed else [])
|
||||
removed_list = []
|
||||
|
||||
if pkg.name in removed:
|
||||
pkg.installed = False
|
||||
removed_list.append(pkg)
|
||||
|
||||
removed_list.extend((inst for name, inst in removed.items() if name != pkg.name))
|
||||
return TransactionResult(success=not pkg.installed, installed=None, removed=removed_list)
|
||||
else:
|
||||
return TransactionResult.fail()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user