From 3ee6056814980acb4e9be5f49bd9a2595052b9f5 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 12 Jun 2020 18:18:48 -0300 Subject: [PATCH] [fix][arch] crashes when downgrading a package after being recently installed --- bauh/gems/arch/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index b5576ff2..ad472e38 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -696,7 +696,8 @@ class ArchManager(SoftwareManager): context = TransactionContext(name=pkg.name, base=pkg.get_base_name(), skip_opt_deps=True, change_progress=True, dependency=False, repository=pkg.repository, pkg=pkg, - arch_config=read_config(), watcher=watcher, handler=handler, root_password=root_password) + arch_config=read_config(), watcher=watcher, handler=handler, root_password=root_password, + installed=set(), removed={}) self._sync_databases(context.config, root_password, handler)