Author: lslezak Date: Fri Aug 15 12:19:40 2008 New Revision: 50104 URL: http://svn.opensuse.org/viewcvs/yast?rev=50104&view=rev Log: - use Selectable in PkgFunctions::DoAllKind Modified: branches/tmp/lslezak/pkg-bindings/src/Package.cc Modified: branches/tmp/lslezak/pkg-bindings/src/Package.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/pkg-bindings/src/P... ============================================================================== --- branches/tmp/lslezak/pkg-bindings/src/Package.cc (original) +++ branches/tmp/lslezak/pkg-bindings/src/Package.cc Fri Aug 15 12:19:40 2008 @@ -662,13 +662,14 @@ try { - for (zypp::ResPool::byKind_iterator it = zypp_ptr()->pool().byKindBegin(kind); - it != zypp_ptr()->pool().byKindEnd(kind); ++it) + for (zypp::ResPoolProxy::const_iterator it = zypp_ptr()->poolProxy().byKindBegin(kind); + it != zypp_ptr()->poolProxy().byKindEnd(kind); + ++it) { - bool res = provide ? it->status().setToBeInstalled( whoWantsIt ) - : (it->status().isInstalled() && it->status().setToBeUninstalled( whoWantsIt )); + bool res = provide ? (*it)->setToInstall(whoWantsIt) : (*it)->setToDelete(whoWantsIt); + + y2milestone ("%s %s -> %s\n", (provide ? "Install" : "Remove"), (*it)->theObj().resolvable()->name().c_str(), (res ? "Ok" : "Failed")); - y2milestone ("%s %s -> %s\n", (provide ? "Install" : "Remove"), (*it)->name().c_str(), (res ? "Ok" : "Failed")); ret = ret && res; } } @@ -791,7 +792,7 @@ if (tags->value(i)->isString()) { zypp::ui::Selectable::Ptr s = zypp::ui::Selectable::get(tags->value(i)->asString()->value()); - s->setToDelete(); + s->setToDelete(whoWantsIt); } else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org