Quintus/ruby-xz

Invalid archive checksum should raise exception

Closed this issue · 1 comments

To be of any use, the flags regarding archive checksums should actually make the archive’s validity accessible somehow rather than just printing a warning about an invalid checksum. Should probably cause an exception as an invalid archive can’t be read anyway.

API breaking, so for 1.0.0.

Valete,
Quintus

Actually, ruby-xz has always raised an exception when an archive was corrupt. It only generates warnings if the checksum algorithm in use is unknown, and that's probably fine.

Commit 70a74c9 adds a test for corrupt data.