The meta api allows for multiple checksums for a file by returning an array. e.g. for plugin wptouch version 4.3.22 the checksums for the file lang/wptouch.pot are:
{
"md5": [
"ee40a33bff8f84acd1d3497e7bc2f32c",
"1ece63d7ab1970a349aeed4fb8737f9a"
],
"sha256": [
"dff12d0d154f72f1296f1ad614cc5c8cfd562ffe869e9d6171be95916838663c",
"0db91fb078011c813b6e0122823a08625a58a0474450782be17ee99c00939aed"
]
}
I've got a POC patch which fixes wp checksum plugin - KrisShannon/checksum-command@5121fba - but it doesn't include tests and I think maybe the "are these two equal strings or is this a string in this array" logic should be separated into it's own utility function.
The meta api allows for multiple checksums for a file by returning an array. e.g. for plugin wptouch version 4.3.22 the checksums for the file
lang/wptouch.potare:{ "md5": [ "ee40a33bff8f84acd1d3497e7bc2f32c", "1ece63d7ab1970a349aeed4fb8737f9a" ], "sha256": [ "dff12d0d154f72f1296f1ad614cc5c8cfd562ffe869e9d6171be95916838663c", "0db91fb078011c813b6e0122823a08625a58a0474450782be17ee99c00939aed" ] }I've got a POC patch which fixes
wp checksum plugin- KrisShannon/checksum-command@5121fba - but it doesn't include tests and I think maybe the "are these two equal strings or is this a string in this array" logic should be separated into it's own utility function.