Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11615 - /trunk/libzypp/tests/lib/TestSetup.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 06 Nov 2008 21:42:41 -0000
  • Message-id: <20081106214241.E45A133950@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages