From 847d78c9414dbfd1b7344d79abd93f9d78f83871 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Sun, 29 Jan 2006 18:40:28 +0000 Subject: [PATCH] look at current, not future status when counting depending on installed/uninstalled --- zypp/solver/detail/ResolverContext.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zypp/solver/detail/ResolverContext.cc b/zypp/solver/detail/ResolverContext.cc index 83d305782..a9ed4303c 100644 --- a/zypp/solver/detail/ResolverContext.cc +++ b/zypp/solver/detail/ResolverContext.cc @@ -798,7 +798,7 @@ static void install_count_cb (PoolItem_Ref item, const ResStatus & status, void *data) { int *count = (int *)data; - if (! status.isInstalled ()) { + if (! item.status().isInstalled ()) { ++*count; } } @@ -818,7 +818,7 @@ static void uninstall_count_cb (PoolItem_Ref item, const ResStatus & status, void *data) { int *count = (int *)data; - if (status.isInstalled ()) { + if (item.status().isInstalled ()) { ++*count; } } @@ -846,7 +846,7 @@ static void satisfy_count_cb (PoolItem_Ref item, const ResStatus & status, void *data) { int *count = (int *)data; - if (! status.isInstalled ()) { + if (! item.status().isInstalled ()) { ++*count; } } -- 2.34.1