Author: aschnell Date: Tue Jul 24 16:19:50 2007 New Revision: 6184 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6184&view=rev Log: - output some caps Modified: trunk/libzypp/devel/devel.aschnell/parse1.cc Modified: trunk/libzypp/devel/devel.aschnell/parse1.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.aschnell/parse1.cc?rev=6184&r1=6183&r2=6184&view=diff ============================================================================== --- trunk/libzypp/devel/devel.aschnell/parse1.cc (original) +++ trunk/libzypp/devel/devel.aschnell/parse1.cc Tue Jul 24 16:19:50 2007 @@ -86,12 +86,22 @@ USR << "pool: " << pool << endl; - for (ResPool::const_iterator it = pool.begin(); it != pool.end(); it++) + for (ResPool::const_iterator itRes = pool.begin(); itRes != pool.end(); itRes++) { - USR << (*it)->name() << ' ' - << (*it)->kind() << ' ' - << (*it)->arch() << ' ' - << (*it)->edition() << endl; + USR << (*itRes)->name() << ' ' + << (*itRes)->kind() << ' ' + << (*itRes)->arch() << ' ' + << (*itRes)->edition() << endl; + + CapSet caps; + + caps = (*itRes)->dep(Dep::PROVIDES); + for (CapSet::const_iterator itCap = caps.begin(); itCap != caps.end(); itCap++) + USR << " Provides: " << itCap->asString() << std::endl; + + caps = (*itRes)->dep(Dep::REQUIRES); + for (CapSet::const_iterator itCap = caps.begin(); itCap != caps.end(); itCap++) + USR << " Requires: " << itCap->asString() << std::endl; } INT << "===[END]============================================" << endl; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org