Skip to content

Conversation

@ngetahun
Copy link
Contributor

XZ compression is being adopted in rpm repos. Recently EPEL 9 repos have xz compressed metadata. We want RMT to be able to parse such files.

- Updated Gemfile.lock to include ruby-xz dependency.
- Modified repomd_parser.rb to handle .xz file decompression.
- Added XZ compressed XML test case in primary_xml_parser_spec.rb.
- Included a sample XZ file in the fixtures for testing.
@ikapelyukhin
Copy link
Owner

ikapelyukhin commented Nov 12, 2025

@ngetahun what Ruby versions does RMT need to support? Tests are breaking now for 3.0 and older because of 3.1 pin in the Gemfile.lock you've added:

Installing Bundler
  Using Bundler 2.6.2 from Gemfile.lock BUNDLED WITH 2.6.2
  /opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem install bundler -v 2.6.2
  ERROR:  Error installing bundler:
  	bundler-2.6.2 requires Ruby version >= 3.1.0. The current ruby version is 3.0.7.220.
  Took   0.27 seconds

@ikapelyukhin
Copy link
Owner

@ngetahun I'm closing this PR in favor of #20, I've added some commits on top of your feature branch to drop Gemfile.lock and fix Rubocop errors so that the tests can run.

We can readd Gemfile.lock later, but please talk to the team and figure out what is the oldest Ruby version that has to be supported (i.e. what is the Ruby version on the oldest supported SLES service pack that has RMT).

@ngetahun
Copy link
Contributor Author

Ah okay, I guess I was using bundler. Thanks for the prompt response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants