Skip to content

Commit

Permalink
openssl: add try-catch to configuration and Makefile patch functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Dec 31, 2024
1 parent 6d5fbd8 commit d6a3f76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions packages/o/openssl/configure/patch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,16 @@ function _replace_NUL_with_null()
end

function main(package)
_remove_unused_pod_usage()
_replace_NUL_with_null()
_fix_overlong_make_recipe()
try {
function()
_remove_unused_pod_usage()
_replace_NUL_with_null()
_fix_overlong_make_recipe()
end,
catch {
function (errors)
cprint("${color.error}" .. errors .. "${clear}\n")
end
}
}
end
2 changes: 1 addition & 1 deletion packages/o/openssl/makefile/patch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ function _patch_for_llvm_rc(package, opt)
end

function main(package, opt)
_patch_for_llvm_rc(package, opt)
try {function() return _patch_for_llvm_rc(package, opt) end}
end

0 comments on commit d6a3f76

Please sign in to comment.