Skip to content

Commit

Permalink
helpers.v2.1: ynh_setup_source now fails in CI if patches can't apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Jun 19, 2024
1 parent 39ee171 commit c1bc824
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers/helpers.v2.1.d/utils
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ ynh_setup_source() {
for patchfile in "$patches_folder/"*.patch; do
echo "$patchfile"
if ! patch --strip=1 < "$patchfile"; then
ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply"
if ynh_in_ci_tests; then
ynh_die --message"Patch $patchfile failed to apply!"
else
ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply"
fi
fi
done
popd
Expand Down

0 comments on commit c1bc824

Please sign in to comment.