using ResStatus instead of Resolver
authorStefan Schubert <schubi@suse.de>
Tue, 31 Jan 2006 16:23:36 +0000 (16:23 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 31 Jan 2006 16:23:36 +0000 (16:23 +0000)
zypp/solver/detail/SolutionAction.cc

index f497212d762bd1378c7ed97b5ba66e9ada38b0c5..4ac9af4f7c6a75e4e4fa5a876d62ffd39b446012 100644 (file)
@@ -119,12 +119,13 @@ TransactionSolutionAction::execute(Resolver & resolver) const
     bool ret = true;
     switch (action()) {
        case KEEP:
+           ret = _item.status().setNoTransact (ResStatus::USER);
        case INSTALL:
        case UPDATE:
-           resolver.addPoolItemToInstall (_item);
+           _item.status().setToBeInstalled (ResStatus::USER);
            break;
        case REMOVE:
-           resolver.addPoolItemToRemove (_item);           
+           _item.status().setToBeUninstalled (ResStatus::USER);
            break;
        case UNLOCK:
            ERR << "Not implemented yet" << endl;