Author: lslezak Date: Tue Apr 22 08:54:05 2008 New Revision: 46937 URL: http://svn.opensuse.org/viewcvs/yast?rev=46937&view=rev Log: - return dependency kind in Pkg::ResolvableDependencies() (bnc#381340) Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Resolvable_Properties.cc Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=46937&r1=46936&r2=46937&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Tue Apr 22 08:54:05 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Apr 22 08:53:11 CEST 2008 - lslezak@suse.cz + +- return dependency kind in Pkg::ResolvableDependencies() + (bnc#381340) + +------------------------------------------------------------------- Fri Apr 18 13:27:33 CEST 2008 - lslezak@suse.cz - added Pkg::PkgMediaPackageSizes() to speed up computing Modified: trunk/pkg-bindings/src/Resolvable_Properties.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Resolvable_Properties.cc?rev=46937&r1=46936&r2=46937&view=diff ============================================================================== --- trunk/pkg-bindings/src/Resolvable_Properties.cc (original) +++ trunk/pkg-bindings/src/Resolvable_Properties.cc Tue Apr 22 08:54:05 2008 @@ -365,15 +365,17 @@ try { zypp::Dep depkind(*kind_it); zypp::Capabilities deps = it->resolvable()->dep(depkind); - for (zypp::Capabilities::const_iterator d = deps.begin(); d != deps.end(); ++d) + + zypp::sat::WhatProvides prv(deps); + + for (zypp::sat::WhatProvides::const_iterator d = prv.begin(); d != prv.end(); ++d) { YCPMap ycpdep; - //FIXME ycpdep->add (YCPString ("res_kind"), YCPString (d.kind().asString())); - ycpdep->add (YCPString ("name"), YCPString (d->asString())); + ycpdep->add (YCPString ("res_kind"), YCPString (d->kind().asString())); + ycpdep->add (YCPString ("name"), YCPString (d->name())); ycpdep->add (YCPString ("dep_kind"), YCPString (*kind_it)); ycpdeps->add (ycpdep); } - } catch (...) {} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org