From: Stephan Kulow Date: Sun, 2 Mar 2008 16:25:50 +0000 (+0000) Subject: another case where we better refresh the metadata instead X-Git-Tag: BASE-SuSE-Linux-11_0-Branch~504 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5163175e61d72e27b49b4b0a45348a6650399410;p=platform%2Fupstream%2Flibzypp.git another case where we better refresh the metadata instead of relying on the user to call refresh after having added a repo --- diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 8a522f1..687fc49 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -675,7 +675,10 @@ namespace zypp 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;