From a5cebc1225a7ef7e4189aa87b07e2555e4813da6 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 13 Jul 2009 07:27:10 +0000 Subject: [PATCH] replaced package upgrades are forced, so plan_upgrade should know that --- pisi/operations/upgrade.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pisi/operations/upgrade.py b/pisi/operations/upgrade.py index ef37f89c..3291bf7c 100644 --- a/pisi/operations/upgrade.py +++ b/pisi/operations/upgrade.py @@ -181,6 +181,11 @@ def plan_upgrade(A): G_f = pgraph.PGraph(packagedb) # construct G_f + replaces = packagedb.get_replaces() + # Force upgrading of installed but replaced packages or else they will be removed (they are obsoleted also). + # This is not wanted for a replaced driver package (eg. nvidia-X). + A = set(A) | set(replaces.values()) + # find the "install closure" graph of G_f by package # set A using packagedb for x in A: