[zypp-commit] r5907 - /trunk/libzypp-testsuite/solver/src/deptestomatic.cc
Author: schubi2 Date: Fri Jul 6 11:32:58 2007 New Revision: 5907 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5907&view=rev Log: Do not initialize target in order to get the packages which has to be installed/deleted.... Modified: trunk/libzypp-testsuite/solver/src/deptestomatic.cc Modified: trunk/libzypp-testsuite/solver/src/deptestomatic.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/solver/src/deptestomatic.cc?rev=5907&r1=5906&r2=5907&view=diff ============================================================================== --- trunk/libzypp-testsuite/solver/src/deptestomatic.cc (original) +++ trunk/libzypp-testsuite/solver/src/deptestomatic.cc Fri Jul 6 11:32:58 2007 @@ -71,6 +71,7 @@ #include "zypp/ZYpp.h" #include "zypp/ZYppFactory.h" +#include "zypp/pool/GetResolvablesToInsDel.h" #include "zypp/solver/detail/Resolver.h" #include "zypp/solver/detail/ResolverContext.h" #include "zypp/solver/detail/ResolverQueue.h" @@ -482,11 +483,15 @@ if (mediaorder) { cout << endl; RESULT << "Media Order:" << endl << endl; - God->initializeTarget("/"); // init, but don't populate pool + Target::PoolItemList dellist; Target::PoolItemList inslist; Target::PoolItemList srclist; - God->target()->getResolvablesToInsDel( context->pool(), dellist, inslist, srclist ); + pool::GetResolvablesToInsDel collect( context->pool() ); + dellist.swap(collect._toDelete); + inslist.swap(collect._toInstall); + srclist.swap(collect._toSrcinstall); + int count = 0; for (Target::PoolItemList::const_iterator iter = dellist.begin(); iter != dellist.end(); iter++) { cout << "DEL " << ++count << ".: "; printRes (cout, (*iter)); cout << endl; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
schubi2@svn.opensuse.org