Ignore errors during lconvert
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 25 Jun 2022 19:22:20 +0000 (21:22 +0200)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 24 Oct 2023 14:08:38 +0000 (16:08 +0200)
Starting with qt5 5.15.4 lconvert errors with

QM-Format error

for some calls and thus thus fails the build.

Gbp-Pq: Name 0009-Ignore-errors-during-lconvert.patch

gui/package_app

index 4b1588bf958c39c892bfaf9caa87d13f95eccb0a..c674059757ca6047fca03e551938c4e352cf212e 100755 (executable)
@@ -50,7 +50,7 @@ function convert_qt_translations()
     inputs+=("qtbase_${language}.qm")
     if [ -e "qtdeclarative_${language}.qm" ]; then inputs+=("qtdeclarative_${language}.qm"); fi
     if [ -e "qtserialport_${language}.qm" ]; then inputs+=("qtserialport_${language}.qm"); fi
-    "${LCONVERT}" -o "${LANGDIR}/qt_${language}.qm" "${inputs[@]}"
+    "${LCONVERT}" -o "${LANGDIR}/qt_${language}.qm" "${inputs[@]}" || true
 
     if [ "${machine}" = "Mac" ]; then
       # Create locversion.plist in the bundle to trigger translations for