Author: mlandres Date: Thu Nov 6 22:42:41 2008 New Revision: 11615 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11615&view=rev Log: TestSetup: add or modify loaded repos. Modified: trunk/libzypp/tests/lib/TestSetup.h Modified: trunk/libzypp/tests/lib/TestSetup.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/lib/TestSetup.h?rev=11615&r1=11614&r2=11615&view=diff ============================================================================== --- trunk/libzypp/tests/lib/TestSetup.h (original) +++ trunk/libzypp/tests/lib/TestSetup.h Thu Nov 6 22:42:41 2008 @@ -84,7 +84,10 @@ void loadRepo( RepoInfo nrepo ) { RepoManager rmanager( repomanager() ); - rmanager.addRepository( nrepo ); + if ( rmanager.hasRepo( nrepo ) ) + rmanager.modifyRepository( nrepo ); + else + rmanager.addRepository( nrepo ); rmanager.buildCache( nrepo ); rmanager.loadFromCache( nrepo ); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org