verify_all(filename,
mydict,
calc_prelink=0,
strict=0)
| source code
|
Verify all checksums against a file.
- Parameters:
filename (String) - File to run the checksums against
calc_prelink (Integer) - Whether or not to reverse prelink before running the checksum
strict (Integer) - Enable/Disable strict checking (which stops exactly at a checksum
failure and throws an exception)
- Returns: Tuple
- Result of the checks and possible message: 1) If size fails,
False, and a tuple containing a message, the given size, and the
actual size 2) If there is an os error, False, and a tuple
containing the system error followed by 2 nulls 3) If a checksum
fails, False and a tuple containing a message, the given hash,
and the actual hash 4) If all checks succeed, return True and a
fake reason
|