File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -537,8 +537,8 @@ function(_ExternalData_compute_hash var_hash algo file)
537
537
if (NOT ${w3_put_result} EQUAL 0)
538
538
message (FATAL_ERROR "Error while calling 'w3 put': ${w3_put_error} " )
539
539
endif ()
540
- string (FIND "${w3_put_output} " "https://dweb .link/ipfs/" dweb_loc )
541
- math (EXPR cid_loc "${dweb_loc } + 23 " )
540
+ string (FIND "${w3_put_output} " "https://w3s .link/ipfs/" w3s_loc )
541
+ math (EXPR cid_loc "${w3s_loc } + 22 " )
542
542
string (SUBSTRING "${w3_put_output} " ${cid_loc} -1 w3_cid)
543
543
set ("${var_hash} " "${w3_cid} " PARENT_SCOPE)
544
544
elseif ("${algo} " MATCHES "^${_ExternalData_REGEX_ALGO} $" )
@@ -1126,10 +1126,10 @@ if("${ExternalData_ACTION}" STREQUAL "fetch")
1126
1126
string (REPLACE "+" ";" exts_list "${exts} " )
1127
1127
set (succeeded 0)
1128
1128
set (errorMsg "" )
1129
- set (hash_list)
1130
- set (algo_list)
1131
- set (hash)
1132
- set (algo)
1129
+ set (hash_list )
1130
+ set (algo_list )
1131
+ set (hash )
1132
+ set (algo )
1133
1133
foreach (ext ${exts_list} )
1134
1134
file (READ "${name}${ext} " hash)
1135
1135
string (STRIP "${hash} " hash)
You can’t perform that action at this time.
0 commit comments