mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[gems.arch] fix: not detecting some package replacements when upgrading due to conflict information having logic operators
This commit is contained in:
@@ -149,12 +149,14 @@ class UpdatesSummarizer:
|
||||
for p, data in context.pkgs_data.items():
|
||||
if data['c']:
|
||||
for c in data['c']:
|
||||
if c and c != p and c in context.installed_names:
|
||||
# source = provided_map[c]
|
||||
root_conflict[c] = p
|
||||
if c:
|
||||
pkg_name = DependenciesAnalyser.re_dep_operator().split(c)[0]
|
||||
if pkg_name != p and pkg_name in context.installed_names:
|
||||
# source = provided_map[c]
|
||||
root_conflict[pkg_name] = p
|
||||
|
||||
if (p, c) in root_conflict.items():
|
||||
mutual_conflicts[c] = p
|
||||
if (p, pkg_name) in root_conflict.items():
|
||||
mutual_conflicts[pkg_name] = p
|
||||
|
||||
if mutual_conflicts:
|
||||
for pkg1, pkg2 in mutual_conflicts.items():
|
||||
|
||||
Reference in New Issue
Block a user