kpcyrd / what-the-src

Source code of https://whatsrc.org/
https://whatsrc.org/
GNU General Public License v3.0
27 stars 4 forks source link

Download .crate files referenced in gentoo #20

Open kpcyrd opened 2 months ago

kpcyrd commented 2 months ago

The data that is parsed for gentoo contains things like this:

https://crates.io/api/v1/crates/aho-corasick/1.1.1/download -> aho-corasick-1.1.1.crate

The extension .crate is understood in the whatsrc codebase, but it can't detect /download as an archive.

The code should be changed to consider the filename too when processing Gentoo data.