juledwar / soufi

Source finder CLI and API
Apache License 2.0
0 stars 0 forks source link

Photon OS finder cannot find superseded updates #11

Closed 0xDEC0DE closed 2 years ago

0xDEC0DE commented 2 years ago

Steps to reproduce

Attempt to retrieve sources for an RPM in their tree that has since been superseded by a newer RPM:

soufi photon curl-libs 7.75.0-2.ph4

Expected result

https://packages.vmware.com/photon/4.0/photon_srpms_4.0_x86_64/curl-7.75.0-2.ph4.src.rpm

Actual behavior

source not found

Errata

This only affects packages where the SRPM name and the RPM name do not match, requiring the "slow lookup" method.

This appears to be because only the latest version of the package is represented in the repodata.xml, even though all previous versions are present in the repository.

Also, when loading the repodata for the binary files to do the lookup, some aarch64 directories are sneaking in there, and should be omitted.

0xDEC0DE commented 2 years ago

Fixed by #12