mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[snap] fix -> app not launchable after recent installation
This commit is contained in:
@@ -221,17 +221,17 @@ class SnapManager(SoftwareManager):
|
|||||||
|
|
||||||
def _gen_installation_response(self, success: bool, pkg: SnapApplication, installed: Set[str], disk_loader: DiskCacheLoader):
|
def _gen_installation_response(self, success: bool, pkg: SnapApplication, installed: Set[str], disk_loader: DiskCacheLoader):
|
||||||
if success:
|
if success:
|
||||||
new_installed = [pkg]
|
new_installed = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
current_installed = self.read_installed(disk_loader=disk_loader, internet_available=internet.is_available()).installed
|
current_installed = self.read_installed(disk_loader=disk_loader, internet_available=internet.is_available()).installed
|
||||||
except:
|
except:
|
||||||
|
new_installed = [pkg]
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
current_installed = None
|
current_installed = None
|
||||||
|
|
||||||
if current_installed:
|
if current_installed:
|
||||||
for p in current_installed:
|
for p in current_installed:
|
||||||
if p.name != pkg.name and (not installed or p.name not in installed):
|
if p.name == pkg.name or (not installed or p.name not in installed):
|
||||||
new_installed.append(p)
|
new_installed.append(p)
|
||||||
|
|
||||||
return TransactionResult(success=success, installed=new_installed, removed=[])
|
return TransactionResult(success=success, installed=new_installed, removed=[])
|
||||||
|
|||||||
Reference in New Issue
Block a user