upgrade: Check if the conflicting package is already in the upgrade list
This commit is contained in:
@@ -270,6 +270,10 @@ def plan_upgrade(A, force_replaced=True, replaces=None):
|
|||||||
does not conflict with the new version of A, add A to the upgrade list.
|
does not conflict with the new version of A, add A to the upgrade list.
|
||||||
"""
|
"""
|
||||||
for conflict in pkg.conflicts:
|
for conflict in pkg.conflicts:
|
||||||
|
if conflict.package in G_f.vertices():
|
||||||
|
# Conflicting package is already in the upgrade list.
|
||||||
|
continue
|
||||||
|
|
||||||
if not pisi.conflict.installed_package_conflicts(conflict):
|
if not pisi.conflict.installed_package_conflicts(conflict):
|
||||||
# Conflicting package is not installed.
|
# Conflicting package is not installed.
|
||||||
# No need to deal with it.
|
# No need to deal with it.
|
||||||
|
|||||||
Reference in New Issue
Block a user