[arch] fix -> not able to upgrade a package that explicitly defines a conflict with itself

This commit is contained in:
Vinicius Moreira
2020-08-04 10:53:42 -03:00
parent 19cd85bc98
commit be7652ccf4
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.9.7] 2020 ## [0.9.7] 2020
### Fixes ### Fixes
- Arch
- not able to upgrade a package that explicitly defines a conflict with itself (e.g: grub)
- UI - UI
- crashing when nothing can be upgraded - crashing when nothing can be upgraded

View File

@@ -144,7 +144,7 @@ class UpdatesSummarizer:
for p, data in context.pkgs_data.items(): for p, data in context.pkgs_data.items():
if data['c']: if data['c']:
for c in 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] # source = provided_map[c]
root_conflict[c] = p root_conflict[c] = p