Author: coolo Date: Sun Mar 2 17:25:50 2008 New Revision: 8977 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8977&view=rev Log: another case where we better refresh the metadata instead of relying on the user to call refresh after having added a repo 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=8977&r1=8976&r2=8977&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Sun Mar 2 17:25:50 2008 @@ -675,7 +675,10 @@ RepoStatus raw_metadata_status = metadataStatus(info); if ( raw_metadata_status.empty() ) { - ZYPP_THROW(RepoMetadataException(info)); + /* if there is no cache at this point, we refresh the raw + in case this is the first time - if it's !autorefresh, + we may still refresh */ + refreshMetadata(info, RefreshIfNeeded, progressrcv ); } bool needs_cleaning = false; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org