From be7652ccf434d1cb9717d7c221f1c230b4b6e844 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 4 Aug 2020 10:53:42 -0300 Subject: [PATCH] [arch] fix -> not able to upgrade a package that explicitly defines a conflict with itself --- CHANGELOG.md | 2 ++ bauh/gems/arch/updates.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c979da3..b052b3ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [0.9.7] 2020 ### Fixes +- Arch + - not able to upgrade a package that explicitly defines a conflict with itself (e.g: grub) - UI - crashing when nothing can be upgraded diff --git a/bauh/gems/arch/updates.py b/bauh/gems/arch/updates.py index 9a6a8ad7..3187d11d 100644 --- a/bauh/gems/arch/updates.py +++ b/bauh/gems/arch/updates.py @@ -144,7 +144,7 @@ class UpdatesSummarizer: for p, data in context.pkgs_data.items(): if data['c']: for c in data['c']: - if c and c in context.installed_names: + if c and c != p and c in context.installed_names: # source = provided_map[c] root_conflict[c] = p