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);
///////////////////////////////////////////////////////////////////
//
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;
}
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;
}