#1082839 debmirror: meta files updated even with failed downloads

#1082839#5
Date:
2024-09-27 09:52:10 UTC
From:
To:
Dear developer,

The manual page, in the paragraph describing the option
'--ignore-small-errors', says:

"if any deb files or sources fail to download" [debmirror would] "refuse
to update the meta data to an inconsistent mirror".

This is not what the script is doing: at line 1515, we can see that the
meta files are updated regardless of the number of failed download(s),
thus making the mirror inconsistent if even one package fails to be
downloaded properly.

This is particularly annoying in our case since we're trying to build a
tree of mirrors, and since we're "stuck" behind an HTTP proxy, we're
forced to use the the HTTP download method for our main mirror, and when
the proxy fails to download a package (generally huge packages),
debmirror updates the meta files anyway, resulting in an inconsistent
mirror, and this inconsistency is then propagated to the downstream mirrors.

Regards,