From 5163175e61d72e27b49b4b0a45348a6650399410 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 2 Mar 2008 16:25:50 +0000 Subject: [PATCH] another case where we better refresh the metadata instead of relying on the user to call refresh after having added a repo --- zypp/RepoManager.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.7.4