Differential D27667 Diff 80908 textproc/fcitx5/files/patch-src_lib_fcitx-utils_Fcitx5Download.cmake.in
Changeset View
Changeset View
Standalone View
Standalone View
textproc/fcitx5/files/patch-src_lib_fcitx-utils_Fcitx5Download.cmake.in
- This file was added.
--- src/lib/fcitx-utils/Fcitx5Download.cmake.in.orig 2020-12-04 23:50:28 UTC | |||||
+++ src/lib/fcitx-utils/Fcitx5Download.cmake.in | |||||
@@ -1,15 +1,4 @@ | |||||
if (NOT EXISTS "@FCITX5_DOWNLOAD_DEST@") | |||||
message(STATUS "Downloading '@FCITX5_DOWNLOAD_URL@' to '@FCITX5_DOWNLOAD_DEST@'...") | |||||
- file(DOWNLOAD | |||||
- "@FCITX5_DOWNLOAD_URL@" | |||||
- "@FCITX5_DOWNLOAD_DEST@" | |||||
- EXPECTED_HASH SHA256=@FCITX5_DOWNLOAD_SHA256@ | |||||
- TLS_VERIFY ON | |||||
- SHOW_PROGRESS) | |||||
-else() | |||||
- file(SHA256 "@FCITX5_DOWNLOAD_DEST@" actual_value) | |||||
- if(NOT "${actual_value}" STREQUAL "@FCITX5_DOWNLOAD_SHA256@") | |||||
- message(STATUS "File exists but hash doesn't match, removing...") | |||||
- file(REMOVE "@FCITX5_DOWNLOAD_DEST@") | |||||
- endif() | |||||
+ message(FATAL_ERROR "Downloading is forbidden during build") | |||||
endif() |