From d542fa7a40a5c55f4e6e7174697b660905e310dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Fri, 16 Jul 2010 06:52:17 +0000 Subject: [PATCH] upgrade: Check if the conflicting package is already in the upgrade list --- pisi/operations/upgrade.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pisi/operations/upgrade.py b/pisi/operations/upgrade.py index bded4afe..5c9d5568 100644 --- a/pisi/operations/upgrade.py +++ b/pisi/operations/upgrade.py @@ -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. """ 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): # Conflicting package is not installed. # No need to deal with it.