On Wed, 30 Apr 2014 06:47:00 -0700 (PDT)
Mauro Molinari <
maur...@tiscali.it> wrote:
> Question is: must the MD5SUMS file have a .md5 extension in order to
> make Krusader understand that it must use the md5sum tool to check
> it? Or does it work in a different way?
Yes, it determines which tools to use according to the file extension
of the checksum file.
Here is the code that determines with which tool to verify (line 432 of
"Dialogs/checksumdlg.cpp"):
// do we have a tool for that extension?
int i;
CS_Tool *mytool = 0;
for (i = 0; i < tools.count(); ++i)
if (cs_typeToText[
tools.at(i)->type] == extension.toLower()) {
mytool =
tools.at(i);
break;
}
if (!mytool) {
KMessageBox::error(0, i18n("<qt>Krusader cannot find a checksum
tool that handles %1 on your system. Please check the
<b>Dependencies</b> page in Krusader's settings.</qt>",
extension)); return; }
Valid extensions are (line 198 of "Dialogs/checksumdlg.cpp"):
cs_typeToText[CS_Tool::MD5] = "md5";
cs_typeToText[CS_Tool::SHA1] = "sha1";
cs_typeToText[CS_Tool::SHA256] = "sha256";
cs_typeToText[CS_Tool::SHA224] = "sha224";
cs_typeToText[CS_Tool::SHA384] = "sha384";
cs_typeToText[CS_Tool::SHA512] = "sha512";
cs_typeToText[CS_Tool::TIGER] = "tiger";
cs_typeToText[CS_Tool::WHIRLPOOL] = "whirlpool";
cs_typeToText[CS_Tool::SFV] = "sfv";
cs_typeToText[CS_Tool::CRC] = "crc";