[zypp-commit] r6015 - /branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc
Author: dmacvicar Date: Mon Jul 16 11:40:17 2007 New Revision: 6015 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6015&view=rev Log: Fix reading of non-existant directory Modified: branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc Modified: branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc?rev=6015&r1=6014&r2=6015&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc (original) +++ branches/REFACTORING-10_3/libzypp/zypp/RepoManager.cc Mon Jul 16 11:40:17 2007 @@ -252,7 +252,12 @@ std::list<RepoInfo> RepoManager::knownRepositories() const { MIL << endl; - return repositories_in_dir(_pimpl->options.knownReposPath); + + if ( PathInfo(_pimpl->options.knownReposPath).isExist() ) + return repositories_in_dir(_pimpl->options.knownReposPath); + else + return std::list<RepoInfo>(); + MIL << endl; } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org