[zypp-commit] r11261 - /trunk/libzypp/zypp/RepoManager.cc
Author: jkupec Date: Wed Oct 8 15:38:54 2008 New Revision: 11261 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11261&view=rev Log: - fixed segfault when saving the probed repo type in RepoManager::refreshMetadata() (bnc #431963) Modified: trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=11261&r1=11260&r2=11261&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Wed Oct 8 15:38:54 2008 @@ -821,8 +821,9 @@ if ( info.alias() == (*it).alias() ) { RepoInfo modifiedrepo = info; - modifiedrepo.setType(repokind); - modifyRepository(info.alias(),modifiedrepo); + modifiedrepo.setType( repokind ); + modifyRepository( info.alias(), modifiedrepo ); + break; } } } @@ -1062,6 +1063,8 @@ repo::RepoType RepoManager::probe( const Url &url ) const { + MIL << "going to probe the type of the repo " << endl; + if ( url.getScheme() == "dir" && ! PathInfo( url.getPathName() ).isDir() ) { // Handle non existing local directory in advance, as @@ -1439,6 +1442,7 @@ _pimpl->repos.erase(toedit); _pimpl->repos.insert(newinfo); HistoryLog(_pimpl->options.rootDir).modifyRepository(toedit, newinfo); + MIL << "repo " << alias << " modified" << endl; } } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
jkupec@svn.opensuse.org