Disambiguate aliases when loading testsetup repos.
authorMichael Andres <ma@suse.de>
Wed, 9 Sep 2009 13:22:28 +0000 (15:22 +0200)
committerMichael Andres <ma@suse.de>
Wed, 9 Sep 2009 13:22:28 +0000 (15:22 +0200)
tests/lib/TestSetup.h

index 1161de1..86ceac3 100644 (file)
@@ -136,9 +136,8 @@ class TestSetup
     {
       RepoManager rmanager( repomanager() );
       if ( rmanager.hasRepo( nrepo ) )
-        rmanager.modifyRepository( nrepo );
-      else
-        rmanager.addRepository( nrepo );
+        nrepo.setAlias( RepoManager::makeStupidAlias( nrepo.url() ) );
+      rmanager.addRepository( nrepo );
       rmanager.buildCache( nrepo );
       rmanager.loadFromCache( nrepo );
     }