Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We use the `pkgcache.bin` modification time as a heuristic, but there might be a better way to do this. We also silently ignore errors when pulling that file to avoid broken systems from breaking the other metrics. I believe this will lead to a null metric which is probably what we want anyway. A possible improvement to this would be to individually inspect the `InRelease` files and report the mirror's timestamps as well, but that's more involved. It's also not a priority compared to this fix, because we want the update timestamp if we remove the `apt update` run (in #181). Closes: #180 Signed-off-by: Antoine Beaupré <[email protected]> Co-authored-by: Ben Kochie <[email protected]>
- Loading branch information