From 8a28f277028cbe0ef05f28c30b90ff3d21d5f768 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Mon, 14 Apr 2025 16:56:50 -0400
Subject: [PATCH] Windows-build: improve handling failures in gnutls
 build-steps

Change-Id: I765959e1ac73ca8d0315d1ee85b18cbb0b4cf92b
---
 contrib/src/gnutls/package.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/src/gnutls/package.json b/contrib/src/gnutls/package.json
index 3be3464e2c..e34fcebdd7 100644
--- a/contrib/src/gnutls/package.json
+++ b/contrib/src/gnutls/package.json
@@ -15,9 +15,9 @@
     "custom_scripts": {
         "pre_build": [
             "git init",
-            "git remote add origin https://github.com/ShiftMediaProject/gnutls.git || true",
+            "git remote add origin https://github.com/ShiftMediaProject/gnutls.git || exit /b 0",
             "git fetch origin --depth=1 --tags && git reset --hard 3.8.3",
-            "git apply ../../src/gnutls/0001-fix-mkdir-permissions-on-Windows.patch",
+            "git apply --whitespace=fix ../../src/gnutls/0001-fix-mkdir-permissions-on-Windows.patch",
             "git submodule update --init --recursive --depth=1 gnulib devel/libtasn1"
         ]
     }
-- 
GitLab