[debian] fix: displaying the 'Remove completely' option for recent installed application when 'purge' is default

This commit is contained in:
Vinicius Moreira
2022-04-14 13:16:46 -03:00
parent aff72e0f82
commit a6535c113f

View File

@@ -67,12 +67,12 @@ class DebianPackageManager(SoftwareManager, SettingsController):
if not is_url: if not is_url:
for pkg in self.aptitude.search(words): for pkg in self.aptitude.search(words):
if pkg.installed: if fill_config.is_alive():
if fill_config.is_alive(): fill_config.join()
fill_config.join()
pkg.global_purge = bool(config_.get('remove.purge', False))
if pkg.installed:
pkg.bind_app(self.apps_index.get(pkg.name)) pkg.bind_app(self.apps_index.get(pkg.name))
pkg.global_purge = bool(config_.get('remove.purge', False))
res.installed.append(pkg) res.installed.append(pkg)
else: else:
res.new.append(pkg) res.new.append(pkg)