From 30fd4111800aaf5e65c87e1f89ae34987ba7a0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Wed, 7 Jun 2006 10:08:42 +0000 Subject: [PATCH] * fix: use installed packages in configure_pending --- pisi/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/api.py b/pisi/api.py index 1d65061e..eed080b6 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -196,14 +196,14 @@ def configure_pending(): # start with pending packages # configure them in reverse topological order of dependency A = ctx.installdb.list_pending() - G_f = pgraph.PGraph(ctx.packagedb) # construct G_f + G_f = pgraph.PGraph(ctx.packagedb, pisi.itembyrepodb.installed) # construct G_f for x in A.keys(): G_f.add_package(x) B = A while len(B) > 0: Bp = set() for x in B.keys(): - pkg = ctx.packagedb.get_package(x) + pkg = ctx.packagedb.get_package(x, pisi.itembyrepodb.installed) for dep in pkg.runtimeDependencies(): if dep.package in G_f.vertices(): G_f.add_dep(x, dep)