From c5e421d270d83b051739c91d135fb246200425c2 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sun, 6 Sep 2020 01:17:11 -0300 Subject: [PATCH] [snap] fix -> app not launchable after recent installation --- bauh/gems/snap/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bauh/gems/snap/controller.py b/bauh/gems/snap/controller.py index b241e287..f4a84f40 100644 --- a/bauh/gems/snap/controller.py +++ b/bauh/gems/snap/controller.py @@ -221,17 +221,17 @@ class SnapManager(SoftwareManager): def _gen_installation_response(self, success: bool, pkg: SnapApplication, installed: Set[str], disk_loader: DiskCacheLoader): if success: - new_installed = [pkg] - + new_installed = [] try: current_installed = self.read_installed(disk_loader=disk_loader, internet_available=internet.is_available()).installed except: + new_installed = [pkg] traceback.print_exc() current_installed = None if 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) return TransactionResult(success=success, installed=new_installed, removed=[])