Skip to content

Commit 08fe3bd

Browse files
committed
libmodplug: Use sha256 parameter of tools.download() for caching
1 parent 728611e commit 08fe3bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

recipes/libmodplug/all/test_package/conanfile.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ def build(self):
1414
def test(self):
1515
if not tools.cross_building(self.settings):
1616
# Download a public domain xm file; https://modarchive.org/module.php?178293
17-
tools.download("https://api.modarchive.org/downloads.php?moduleid=178293#burbs.xm", filename="burbs.xm")
18-
tools.check_sha256("burbs.xm", "ced080401a2635cddc6d13b9095efa217f260ce7b3a482a29b454f72317b0c4d")
19-
17+
tools.download(
18+
"https://api.modarchive.org/downloads.php?moduleid=178293#burbs.xm",
19+
filename="burbs.xm",
20+
sha256="ced080401a2635cddc6d13b9095efa217f260ce7b3a482a29b454f72317b0c4d",
21+
)
2022
bin_path = os.path.join("bin", "test_package")
2123
self.run("%s %s" % (bin_path, "burbs.xm"), run_environment=True)

0 commit comments

Comments
 (0)