RPM `filelist.xml` updater
What does this MR do and why?
Extends BuildFilelistXml
builder services with build_new_node
function to update existed xml files with metadata from new packages.
Screenshots or screen recordings
How to set up and validate locally
- Generate empty
xml
empty = Packages::Rpm::RepositoryMetadata::UpdateXmlService.new(filename: :filelist).execute
- Set variable with parsed RPM package metadata
data = {files: ['test', '/urs/test', '/user/.test', 'test.js', '/urs/test.js', '/user/test.html.erb']}
- Call service again passing empty
xml
anddata
Packages::Rpm::RepositoryMetadata::BuildFilelistXmlService.new(data).execute
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #372652 (closed)
Edited by bohdan-barylo