replaced package upgrades are forced, so plan_upgrade should know that

This commit is contained in:
Faik Uygur
2009-07-13 07:27:10 +00:00
parent 4ffb3e3b67
commit a5cebc1225
+5
View File
@@ -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: