kpcyrd / what-the-src

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

Gentoo support #15

Closed CyberTailor closed 5 months ago

CyberTailor commented 5 months ago

Two locations need to be scanned:

  1. metadata/md5-cache/${CATEGORY}/${PACKAGE}-${VERSION} to get SRC_URI
  2. ${CATEGORY}/${PACKAGE}/Manifest to get SHA-256 and BLAKE2b hashsums and size (spec)

Repository cache can be found in the official mirror.

kpcyrd commented 5 months ago

What's the difference between these two?

They both seem to contain all 3 files (Manifest, metadata.xml and the .ebuilds), not sure if I'm missing something.

kpcyrd commented 5 months ago

I think I figured it out, this file only exists on gentoo-mirror/gentoo:

https://github.com/gentoo-mirror/gentoo/blob/stable/metadata/md5-cache/sys-apps/ripgrep-14.1.0