From e3fa3964f35aea6e4a8fe78cbe281ea085eebfad Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Fri, 4 Apr 2008 12:48:10 +0000 Subject: [PATCH] fixed setting recommend/suggested flag --- zypp/ResStatus.cc | 2 -- zypp/sat/SATResolver.cc | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/zypp/ResStatus.cc b/zypp/ResStatus.cc index f5aa357a6..0673cb2f6 100644 --- a/zypp/ResStatus.cc +++ b/zypp/ResStatus.cc @@ -28,8 +28,6 @@ namespace zypp const ResStatus ResStatus::toBeUninstalledDueToUpgrade (INSTALLED, TRANSACT, EXPLICIT_INSTALL, DUE_TO_UPGRADE); const ResStatus ResStatus::installed (INSTALLED); const ResStatus ResStatus::uninstalled (UNINSTALLED); - const ResStatus ResStatus::recommended (RECOMMENDED); - const ResStatus ResStatus::suggested (SUGGESTED); /////////////////////////////////////////////////////////////////// // diff --git a/zypp/sat/SATResolver.cc b/zypp/sat/SATResolver.cc index 7f2c73ae2..f38d7e0ec 100644 --- a/zypp/sat/SATResolver.cc +++ b/zypp/sat/SATResolver.cc @@ -525,7 +525,9 @@ SATResolver::resolvePool(const CapabilitySet & requires_caps, PoolItem poolItem = _pool.find (sat::Solvable(p)); if (poolItem) { - SATSolutionToPool (poolItem, ResStatus::recommended, ResStatus::SOLVER); + ResStatus status = poolItem.status(); + status.setRecommended (true); + SATSolutionToPool (poolItem, status, ResStatus::SOLVER); } else { ERR << "id " << p << " not found in ZYPP pool." << endl; } @@ -541,7 +543,9 @@ SATResolver::resolvePool(const CapabilitySet & requires_caps, PoolItem poolItem = _pool.find (sat::Solvable(p)); if (poolItem) { - SATSolutionToPool (poolItem, ResStatus::suggested, ResStatus::SOLVER); + ResStatus status = poolItem.status(); + status.setSuggested (true); + SATSolutionToPool (poolItem, status, ResStatus::SOLVER); } else { ERR << "id " << p << " not found in ZYPP pool." << endl; } -- 2.34.1