Fixed applying of SDL3 patch after move to recipe repositories.

This commit is contained in:
Patrick 2025-03-27 15:57:03 +01:00
parent a99f5b56c2
commit 3261eb75d5

View File

@ -10,7 +10,8 @@ def _git_cook(env: Environment, repo: dict) -> dict:
if os.path.exists(os.path.join(repo['checkout_root'], 'cmake', 'GetGitRevisionDescription.cmake')):
try:
repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(env['SPP_DIR'], 'recipes', 'SDL', 'fix_sdl3_from_worktree.patch'))
recipe_folder = os.path.dirname(__file__)
repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(recipe_folder, 'fix_sdl3_from_worktree.patch'))
except:
# either already applied or not applicable anymore
pass