Author: aschnell Date: Mon Jul 30 16:45:06 2007 New Revision: 6297 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6297&view=rev Log: - cleanup 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=6297&r1=6296&r2=6297&view=diff ============================================================================== --- trunk/libzypp/devel/devel.aschnell/parse1.cc (original) +++ trunk/libzypp/devel/devel.aschnell/parse1.cc Mon Jul 30 16:45:06 2007 @@ -42,10 +42,6 @@ RepoManager repoManager (opts); - RepoInfoList repos = repoManager.knownRepositories(); - if ( !repos.empty() ) - ERR << "repos not empty" << endl; - RepoInfo nrepo; nrepo.setAlias( "factorytest" ) .setName( "Test Repo for factory." ) @@ -56,17 +52,12 @@ // .addBaseUrl(Url("file:///ARVIN/zypp/trunk/repotools/")); repoManager.addRepository( nrepo ); - repos = repoManager.knownRepositories(); - - SEC << "refreshMetadata" << endl; - repoManager.refreshMetadata( nrepo ); - SEC << "buildCache" << endl; - repoManager.buildCache( nrepo ); ResPool pool( getZYpp()->pool() ); USR << "pool: " << pool << endl; + RepoInfoList repos = repoManager.knownRepositories(); for ( RepoInfoList::iterator it = repos.begin(); it != repos.end(); it++ ) { RepoInfo& nrepo( *it ); @@ -79,7 +70,7 @@ // here SQLite is upto-date SEC << nrepo << endl; - Repository nrep( repoManager.createFromCache( nrepo ) ); + Repository nrep = repoManager.createFromCache( nrepo ); const zypp::ResStore& store( nrep.resolvables() ); getZYpp()->addResolvables( store ); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org