[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

@@ -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