From 09191a7ef372e4a1ffbcd55a213c475bf156d830 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Sun, 2 Jul 2023 22:58:00 +0000
Subject: [PATCH] ubiquity: update crash message to point to trisquel forge

---
 ...crash_report_point_to_trisquel_forge.patch | 29 +++++++++++++++++++
 helpers/make-ubiquity                         | 12 ++++++--
 2 files changed, 38 insertions(+), 3 deletions(-)
 create mode 100644 helpers/DATA/ubiquity/crash_report_point_to_trisquel_forge.patch

diff --git a/helpers/DATA/ubiquity/crash_report_point_to_trisquel_forge.patch b/helpers/DATA/ubiquity/crash_report_point_to_trisquel_forge.patch
new file mode 100644
index 00000000..3ccbf5cb
--- /dev/null
+++ b/helpers/DATA/ubiquity/crash_report_point_to_trisquel_forge.patch
@@ -0,0 +1,29 @@
+diff --git a/debian/ubiquity.templates b/debian/ubiquity.templates
+index 8b459bf..4f66e46 100644
+--- a/debian/ubiquity.templates
++++ b/debian/ubiquity.templates
+@@ -335,11 +335,19 @@ _Description: Installer crashed
+ Template: ubiquity/text/crash_text_label
+ Type: text
+ _Description:
+- We're sorry; the installer crashed. After you close this window, we'll
+- allow you to file a bug report using the integrated bug reporting tool.
+- This will gather information about your system and your installation
+- process. The details will be sent to our bug tracker and a developer
+- will attend to the problem as soon as possible.
++ We're sorry; the installer crashed. Please open an issue at
++ <a href="https://gitlab.trisquel.org/groups/trisquel/-/issues">
++ Trisquel's bug tracker</a> with as much details as posible to follow
++ up by the development team.
++ .
++ The suggested directory to gather information is /var/log, specially:
++ .
++ syslog,
++ dmesg,
++ installer,
++ partman
++ .
++ Thank you for your collaboration.
+ 
+ Template: ubiquity/text/a11y_high_contrast
+ Type: text
diff --git a/helpers/make-ubiquity b/helpers/make-ubiquity
index 07194e04..3d33c645 100644
--- a/helpers/make-ubiquity
+++ b/helpers/make-ubiquity
@@ -18,15 +18,21 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=33
+VERSION=34
 
 . ./config
 
 # Disable confirmation popups, as they are innacurate and buggy
-patch -p1 < $DATA/no_confrirmation_when_crypto.patch
+patch --no-backup-if-mismatch -p1 < $DATA/no_confrirmation_when_crypto.patch
 
 # Fix some gtk labels for Orca
-patch -p1 < $DATA/a11y.patch
+patch --no-backup-if-mismatch -p1 < $DATA/a11y.patch
+
+# Point ubiquity crash to trisquel's forge.
+patch --no-backup-if-mismatch -p1 < $DATA/crash_report_point_to_trisquel_forge.patch
+
+# Remove test_timezone to prevent error out future builds on different daylight time.
+rm tests/test_timezone.py
 
 # Revert changes to advanced features page
 cp $DATA/stepPartAsk.ui gui/gtk/stepPartAsk.ui
-- 
GitLab