Users want DNF to bail quickly when mismatching checkum on one of the mirrors is encountered for a metadata file, instead of trying all other mirrors. The reason is that some of them have the nasty experience of downloading gigabytes of data overnight, all with bad checksums, e.g. due to a buggy mirroring software or a buggy createrepo. Please add an option to librepo that would facilitate this (the default should probably stay the same as now). Maybe it could be an integer setting an upper limit on the number of mirrors tried: 0 - try all mirrors there are 1 - only try the first mirror n - try n first mirrors from the list
Hello, new option LRO_MAXMIRRORTRIES has been added. https://github.com/Tojaj/librepo/commit/0995859bbb997714a0512be979121e7823ca3de2 This option has exactly semantics as you wanted: 0 - try all mirrors there are - DEFAULT 1 - only try the first mirror n - try n first mirrors from the list