Skip to content

Commit

Permalink
Merge pull request #1273 from SUSE/fix-non-cached-metadata
Browse files Browse the repository at this point in the history
Check if repository metadata already exists (is cached)
  • Loading branch information
felixsch authored Jan 15, 2025
2 parents 3cd1011 + eef4ea6 commit 3d4c451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rmt/mirror/repomd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def mirror_metadata

metadata_files = RepomdParser::RepomdXmlParser.new.parse_file(repomd_xml.local_path)
.map do |reference|
ref = RMT::Mirror::FileReference.build_from_metadata(reference, base_dir: temp(:metadata), base_url: repomd_xml.base_url)
ref = RMT::Mirror::FileReference.build_from_metadata(reference, base_dir: temp(:metadata), base_url: repomd_xml.base_url, cache_dir: repository_path)
enqueue ref
ref
end
Expand Down
1 change: 1 addition & 0 deletions package/obs/rmt-server.changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Fri Jan 03 10:44:00 UTC 2025 - Luís Caparroz <lcaparroz@suse.com>
'product_tree.json' from host other than 'scc.suse.com'. (bsc#1234844)
* Update Micro check due to Micro 6.0 and 6.1 identifier to keep bsc#1230419 in place
* Remove obsolete repositories and associations from rmt during SCC sync (bsc#1232808)
* Do not re-download repomd metadata if already exists and be the latest version

-------------------------------------------------------------------
Mon Dec 23 08:03:56 UTC 2024 - Parag Jain <parag.jain@suse.com>
Expand Down

0 comments on commit 3d4c451

Please sign in to comment.