From a24b304368e6595b631f85ca9e17f73b50465d04 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Fri, 14 Mar 2008 13:28:33 +0000 Subject: [PATCH] fix test fail for temporary repo --- zypp/RepoManager.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 92e5a95..258dfe2 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -550,10 +550,18 @@ namespace zypp if (repokind.toEnum() != RepoType::NONE_e) { - //save probed type - RepoInfo modifiedrepo = info; - modifiedrepo.setType(repokind); - modifyRepository(info.alias(),modifiedrepo); + //save probed type only for repos in system + std::list repos = knownRepositories(); + for ( std::list::const_iterator it = repos.begin(); + it != repos.end(); ++it ) + { + if ( info.alias() == (*it).alias() ) + { + RepoInfo modifiedrepo = info; + modifiedrepo.setType(repokind); + modifyRepository(info.alias(),modifiedrepo); + } + } } break; default: -- 2.7.4