From: Michael Andres Date: Wed, 9 Sep 2009 13:22:28 +0000 (+0200) Subject: Disambiguate aliases when loading testsetup repos. X-Git-Tag: 6.14.3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11df39e3c74dca63733e8a955e4079ade9beb775;p=platform%2Fupstream%2Flibzypp.git Disambiguate aliases when loading testsetup repos. --- diff --git a/tests/lib/TestSetup.h b/tests/lib/TestSetup.h index 1161de1..86ceac3 100644 --- a/tests/lib/TestSetup.h +++ b/tests/lib/TestSetup.h @@ -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 ); }