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>
Sat, 25 Jun 2022 19:49:08 +0000 (20:49 +0100)
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 01c00eb4988640fa5c18d15f656517af018b1369..f7829f6cbc3c9111575febfc7513a3bb991f5c0c 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