commit b359c4762c35c27ee19f1595aff226790621edca parent f0255f3f12d90ea3f0172f8a841e7b8747d82d16 Author: cfillion <cfillion@users.noreply.github.com> Date: Fri, 15 Feb 2019 00:36:16 -0500 index: rename the checksum attribute to hash Diffstat:
M | src/index_v1.cpp | | | 2 | +- |
M | test/index_v1.cpp | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/index_v1.cpp b/src/index_v1.cpp @@ -176,7 +176,7 @@ void LoadSourceV1(TiXmlElement *node, Version *ver) const char *file = node->Attribute("file"); if(!file) file = ""; - const char *checksum = node->Attribute("checksum"); + const char *checksum = node->Attribute("hash"); if(!checksum) checksum = ""; const char *main = node->Attribute("main"); diff --git a/test/index_v1.cpp b/test/index_v1.cpp @@ -309,7 +309,7 @@ TEST_CASE("read sha256 checksum", M) { <category name="catname"> <reapack name="packname" type="script"> <version name="1.0" author="John Doe"> - <source checksum="12206037d8b51b33934348a2b26e04f0eb7227315b87bb5688ceb6dccb0468b14cce">https://google.com/</source> + <source hash="12206037d8b51b33934348a2b26e04f0eb7227315b87bb5688ceb6dccb0468b14cce">https://google.com/</source> </version> </reapack> </category>