error 404 with certain packages
on package intel-microcode, you get the following error:
$ a4f snapmatch intel-microcode
21-09-02 22:25:26 INFO aliens4friends | # ALIENS4FRIENDS v0.4.0 with cache pool /home/alberto/pool
21-09-02 22:25:26 DEBUG aliens4friends | Pool directory structure created:
21-09-02 22:25:26 DEBUG aliens4friends | - Debian Path : /home/alberto/pool/debian
21-09-02 22:25:26 DEBUG aliens4friends | - Userland Path : /home/alberto/pool/userland
21-09-02 22:25:26 DEBUG aliens4friends | - Temporary Files Path : /home/alberto/pool/apiresponse
21-09-02 22:25:26 DEBUG aliens4friends | - Statistics Path : /home/alberto/pool/stats
21-09-02 22:25:28 DEBUG aliens4friends.commons.package | [intel-microcode-20201118-r0] adding internal archive github.com.intel.Intel-Linux-Processor-Microcode-Data-Files.git@49bb67f3.tar.xz
21-09-02 22:25:28 DEBUG aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Find a matching package through Debian Snapshot API.
21-09-02 22:25:28 INFO aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Searching for intel-microcode v 20201118-r0 @ snapshot.debian.org/mr/package
21-09-02 22:25:37 INFO aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Fuzzy package match intel-microcode vs intel-microcode: 100
21-09-02 22:25:37 DEBUG aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Searching for package version intel-microcode 20201118-r0
21-09-02 22:25:37 DEBUG aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Searching for package version intel-microcode 20201118-r0
21-09-02 22:25:37 INFO aliens4friends.commands.snap_match | [intel-microcode] = intel-microcode / Best score 50.0
21-09-02 22:25:53 INFO aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] Acquire package sources from https://snapshot.debian.org/mr/package/intel-microcode//allfiles
21-09-02 22:25:53 DEBUG aliens4friends.commands.snap_match | API call result not found in cache. Making an API call...
21-09-02 22:25:58 ERROR aliens4friends.commands.snap_match | [intel-microcode-20201118-r0] ERROR: Cannot get API response, got error 404 from https://snapshot.debian.org/mr/package/intel-microcode//allfiles
It seems that there are two errors here:
- when a version is not found, the API is called anyway, but with a wrong url (see the double slash where the version was supposed to be placed)
- intel-microcode versions in debian look like
3.20210608.2
while the original version is20210608
. Maybe a rule should be set to handle this and other similar cases