diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-07-30 00:14:01 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-07-30 16:11:40 +0200 |
commit | 49017c00caa56255a6946003fd8a62804d6c061f (patch) | |
tree | 05ebdda9630b387ed840ec75bbc866b1165b35eb /tests/run-tests.py | |
parent | a846d5e34352cf7591c39c7c884a140acfc5ec78 (diff) |
utils: tip_check_csum() uses local checksum file
.full.sum file in the local cache contains the local checksum for this file,
this checksum is calculated by tip_write_csum(), therefore, there is no need to
calculate this checksum again from the image file in the cache, use this
checksum content instead.
if .full.sum is not available, then cache is inconsistent, tip_check_csum()
is called after checking if image file exists, raise an exception.
checksum could mismatch in two situations:
a) new image version (checksum is different)
b) image is corrupted
in both cases, a new fresh image needs to be retrieved.
this speeds up checksum validation.
Diffstat (limited to 'tests/run-tests.py')
0 files changed, 0 insertions, 0 deletions