Author: lslezak Date: Fri Aug 15 12:42:52 2008 New Revision: 50107 URL: http://svn.opensuse.org/viewcvs/yast?rev=50107&view=rev Log: - use Selectables in Pkg::ResolvableNeutral() Modified: branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc Modified: branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/pkg-bindings/src/R... ============================================================================== --- branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc (original) +++ branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc Fri Aug 15 12:42:52 2008 @@ -221,22 +221,13 @@ try { - for (zypp::ResPool::byKind_iterator it = zypp_ptr()->pool().byKindBegin(kind); - it != zypp_ptr()->pool().byKindEnd(kind); + for (zypp::ResPoolProxy::const_iterator it = zypp_ptr()->poolProxy().byKindBegin(kind); + it != zypp_ptr()->poolProxy().byKindEnd(kind); ++it) { if (name.empty() || (*it)->name() == name) { - if (!it->status().resetTransact(whoWantsIt)) - { - ret = false; - } - - // force neutralization on the user level - if (force && !it->status().resetTransact(zypp::ResStatus::USER)) - { - ret = false; - } + ret = it->unset(force ? zypp::ResStatus::USER : whoWantsIt) && ret; } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org