From 65508ec9dee38841fecbefb612158498b0f02532 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Mon, 14 Nov 2022 07:14:33 +0000
Subject: [PATCH] thunderbird: remove .gitignore call on third_party

---
 helpers/make-thunderbird | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/helpers/make-thunderbird b/helpers/make-thunderbird
index 2e7e9f72..af0c29aa 100644
--- a/helpers/make-thunderbird
+++ b/helpers/make-thunderbird
@@ -19,7 +19,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=17
+VERSION=18
 
 . ./config
 
@@ -30,6 +30,17 @@ cp $DATA/branding/* comm/mail/branding/thunderbird/ -r
 #  cp $DATA/branding/* browser/branding/$i/ -r
 #done
 
+# Remove .gitignore call as those files get cleaned out on dpkg tarball by default.
+remove_gitignore_from_json(){
+    jq . ${1} |sed '/.gitignore/d'|awk -v RS= '{$1=$1}1'|tr -d ' '|tee ${1}.new
+    mv ${1}.new ${1}
+}
+
+for json in $(find -name \.cargo-checksum.json|xargs grep -rl gitignore)
+do
+    remove_gitignore_from_json $json
+done
+
 # Privacy and branding via prefs
 cat << EOF >> debian/vendor.js
 
-- 
GitLab