From 8d568c3db46dc53518c715d22006f5cb50de7d18 Mon Sep 17 00:00:00 2001 From: Mateusz <2871798+orhtej2@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:30:20 +0200 Subject: [PATCH] Copy over patches when checking out x_x --- helpers/helpers.v2.1.d/sources | 4 ++-- src/app.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helpers/helpers.v2.1.d/sources b/helpers/helpers.v2.1.d/sources index 2ee1ba327a..2f46b21dd8 100644 --- a/helpers/helpers.v2.1.d/sources +++ b/helpers/helpers.v2.1.d/sources @@ -211,8 +211,8 @@ ynh_setup_source() { fi # Apply patches - if [ -d "$YNH_APP_BASEDIR/patches/" ]; then - local patches_folder=$(realpath "$YNH_APP_BASEDIR/patches/$source_id") + if [ -d "$YNH_APP_BASEDIR/sources/patches/" ]; then + local patches_folder=$(realpath "$YNH_APP_BASEDIR/sources/patches/$source_id") pushd "$dest_dir" for patchfile in "$patches_folder/"*.patch; do echo "Applying $patchfile" diff --git a/src/app.py b/src/app.py index c2d930bc97..bb46bf722d 100644 --- a/src/app.py +++ b/src/app.py @@ -94,6 +94,7 @@ "conf", "hooks", "doc", + "sources", ]