fixed setting recommend/suggested flag
authorStefan Schubert <schubi@suse.de>
Fri, 4 Apr 2008 12:48:10 +0000 (12:48 +0000)
committerStefan Schubert <schubi@suse.de>
Fri, 4 Apr 2008 12:48:10 +0000 (12:48 +0000)
zypp/ResStatus.cc
zypp/sat/SATResolver.cc

index f5aa357a6aad6de0d393b7a215adfa56d7565307..0673cb2f625f7104cb4e237d67b9fd078e626392 100644 (file)
@@ -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);        
 
   ///////////////////////////////////////////////////////////////////
   //
index 7f2c73ae22aa62aac960fc311cb3e245d15e5efc..f38d7e0ecc565934c7980aaa1ac7625572343300 100644 (file)
@@ -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;
       }