* Only try to remove installed reverse deps, thanks Caglar

This commit is contained in:
Eray Özkural
2005-12-24 00:53:10 +00:00
parent a4d6784c00
commit 214e959fb6
+3 -2
View File
@@ -474,8 +474,9 @@ def plan_remove(A):
pkg = packagedb.get_package(x) pkg = packagedb.get_package(x)
rev_deps = packagedb.get_rev_deps(x) rev_deps = packagedb.get_rev_deps(x)
for (rev_dep, depinfo) in rev_deps: for (rev_dep, depinfo) in rev_deps:
# we don't deal with unsatisfied dependencies # we don't deal with uninstalled rev deps
if packagedb.has_package(rev_dep) and \ # and unsatisfied dependencies (this is important, too)
if packagedb.inst_packagedb.has_package(rev_dep) and \
dependency.installed_satisfies_dep(depinfo): dependency.installed_satisfies_dep(depinfo):
if not rev_dep in G_f.vertices(): if not rev_dep in G_f.vertices():
Bp.add(rev_dep) Bp.add(rev_dep)