If checksum files does not match, lets ask user if he wants to continue
While using: schnapps import -f https://repo.turris.cz/hbs/medkit/omnia-medkit-latest.tar.gz
a noticed these issues:
- If the checksum does not math for
md5sum
, it tries to continue withsha256sum
, both of them says:
md5sum: WARNING: 1 of 1 computed checksums did NOT match
sha256sum: WARNING: 1 of 1 computed checksums did NOT match
Even if checksums didn't match, it continues to flash the medkit.
Checksum doesn't match for 'https://repo.turris.cz/hbs/medkit/omnia-medkit-latest.tar.gz'
It is almost impossible to check if checksums match or does not as it is really fast.
- It should warn the user and ask him if he wants to proceed or not. (Yes/no option) or even be strict and don't allow it.
Cross-reference for checksums of medkit:https://gitlab.nic.cz/turris/turris-build/-/issues/233