SUSE / rmt

RPM repository mirroring tool and registration proxy for SUSE Customer Center.
Other
37 stars 46 forks source link

Add Packages.xz support #1184

Open j0hax opened 1 week ago

j0hax commented 1 week ago

Description

Hello there! I noticed that the main Debian Bookworm repository works well with RMT, but the Debian-Security repository only copies dists/ without the pool/ directory which contains the packages. Upon inspection of the RMT code I realized that only Packages.gz files are parsed, which are not contained in the Debian-Security repo.

How to test

Mirror http://security.debian.org/debian-security/dists/bookworm-security/main/binary-all/ or any repository which uses the .xz variant over Packages.gz

Change Type

Please select the correct option.

Checklist

Please check off each item if the requirement is met.

Review

Please check out our review guidelines and get in touch with the author to get a shared understanding of the change.

j0hax commented 1 week ago

Also, the Debian Repository Format states:

Servers should offer only xz compressed files, except for the special cases listed above. Some historical clients may only understand gzip compression, if these need to be supported, gzip-compressed files may be offered as well.

I believe parsing both formats should be fine for now, but maybe it would be an idea to (at some point in the far future) phase out reading Packages.gz?

j0hax commented 1 week ago

Friendly ping to @ngetahun