From a6535c113f6fff310ff69e85137db7d2712773f5 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 14 Apr 2022 13:16:46 -0300 Subject: [PATCH] [debian] fix: displaying the 'Remove completely' option for recent installed application when 'purge' is default --- bauh/gems/debian/controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bauh/gems/debian/controller.py b/bauh/gems/debian/controller.py index 933893d6..53f2332a 100644 --- a/bauh/gems/debian/controller.py +++ b/bauh/gems/debian/controller.py @@ -67,12 +67,12 @@ class DebianPackageManager(SoftwareManager, SettingsController): if not is_url: for pkg in self.aptitude.search(words): + if fill_config.is_alive(): + fill_config.join() + + pkg.global_purge = bool(config_.get('remove.purge', False)) if pkg.installed: - if fill_config.is_alive(): - fill_config.join() - pkg.bind_app(self.apps_index.get(pkg.name)) - pkg.global_purge = bool(config_.get('remove.purge', False)) res.installed.append(pkg) else: res.new.append(pkg)