From e8dfbbc4481f75b754f3ca53ce27321e57c87b9e Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 29 Jul 2019 12:22:27 -0300 Subject: [PATCH] fix: disk loader not initialized --- fpakman/core/controller.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fpakman/core/controller.py b/fpakman/core/controller.py index e188337d..79e95ad5 100755 --- a/fpakman/core/controller.py +++ b/fpakman/core/controller.py @@ -152,8 +152,9 @@ class GenericApplicationManager(ApplicationManager): res['installed'].extend(apps_found['installed']) res['new'].extend(apps_found['new']) - disk_loader.stop = True - disk_loader.join() + if disk_loader: + disk_loader.stop = True + disk_loader.join() for key in res: res[key] = self._sort(res[key], norm_word) @@ -173,8 +174,9 @@ class GenericApplicationManager(ApplicationManager): installed.extend(man.read_installed(disk_loader=disk_loader)) - disk_loader.stop = True - disk_loader.join() + if disk_loader: + disk_loader.stop = True + disk_loader.join() installed.sort(key=lambda a: a.base_data.name.lower())