Accepting request 506461 from YaST:Head

- fix translation generator script to fail if po files have failing
  checks rather than silently continuing without translations
  (boo#1044028)

OBS-URL: https://build.opensuse.org/request/show/506461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yast2-trans?expand=0&rev=132
This commit is contained in:
Dominique Leuenberger 2017-07-02 11:32:28 +00:00 committed by Git OBS Bridge
commit 0a725c030f
6 changed files with 50 additions and 14 deletions

View File

@ -1,5 +1,5 @@
<services> <services>
<service name="tar_scm" mode="localonly"> <service name="tar_scm" mode="disabled">
<param name="filename">yast2-trans</param> <param name="filename">yast2-trans</param>
<param name="versionformat">%cd.%h</param> <param name="versionformat">%cd.%h</param>
<!-- it's tumbleweed --> <!-- it's tumbleweed -->
@ -9,9 +9,9 @@
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="changesauthor">git@opensuse.org</param> <param name="changesauthor">git@opensuse.org</param>
</service> </service>
<service name="recompress" mode="localonly"> <service name="recompress" mode="disabled">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">xz</param> <param name="compression">xz</param>
</service> </service>
<service name="set_version" mode="localonly"/> <service name="set_version" mode="disabled"/>
</services> </services>

View File

@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">git://github.com/yast/yast-translations.git</param> <param name="url">git://github.com/yast/yast-translations.git</param>
<param name="changesrevision">0f9396fdf1e97630b69d15e280b7d20ae4607994</param></service></servicedata> <param name="changesrevision">4e7fec5c23defd94f23b6c0a32223ad174cf77ae</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6387b4d6586e3b726a2a260cd1b8e3da43d69e440f266ccffeea274711091fbe
size 20775412

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fc0135503bdc07cff7adb7959a13372322f9db0625196ae54ebe69465cacff5
size 20498000

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Tue Jun 27 11:48:58 UTC 2017 - git@opensuse.org
- Update to version 84.87.20170627.4e7fec5c:
* New POT for text domain 'country'.
* New POT for text domain 'kdump'.
* New POT for text domain 'pkg-bindings'.
* New POT for text domain 'qt-pkg'.
* New POT for text domain 'registration'.
* New POT for text domain 'storage'.
* Translated using Weblate (Catalan)
* Translated using Weblate (Chinese (Taiwan))
* Translated using Weblate (Danish)
* Translated using Weblate (Dutch)
* Translated using Weblate (German)
* Translated using Weblate (Italian)
* Translated using Weblate (Japanese)
* Translated using Weblate (Lithuanian)
* Translated using Weblate (Portuguese (Brazil))
* Translated using Weblate (Slovak)
* Translated using Weblate (Spanish)
* Translated using Weblate (Ukrainian)
-------------------------------------------------------------------
Tue Jun 27 11:40:57 UTC 2017 - lnussel@suse.de
- fix translation generator script to fail if po files have failing
checks rather than silently continuing without translations
(boo#1044028)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 19 08:43:55 UTC 2017 - git@opensuse.org Mon Jun 19 08:43:55 UTC 2017 - git@opensuse.org

View File

@ -17,7 +17,7 @@
Name: yast2-trans Name: yast2-trans
Version: 84.87.20170618.0f9396fd Version: 84.87.20170627.4e7fec5c
Release: 0 Release: 0
Summary: YaST2 - Translation Container Package Summary: YaST2 - Translation Container Package
License: GPL-2.0+ License: GPL-2.0+
@ -699,14 +699,20 @@ for l in %build_languages; do
mkdir -p $pack_dir mkdir -p $pack_dir
cp %{S:1} $pack_dir/COPYING cp %{S:1} $pack_dir/COPYING
# touch %%{buildroot}/usr/share/doc/packages/yast2-trans-$l/status.txt # touch %%{buildroot}/usr/share/doc/packages/yast2-trans-$l/status.txt
{ for po in */$l.po; do
for t in $(find * -maxdepth 1 -type d); do domain="${po%%/*}"
[ -r $t/$l.po ] || continue if ! msgfmt --statistics -o $target_dir/$domain.mo $po > out 2>&1; then
msgfmt --statistics -o $target_dir/$t.mo $t/$l.po 2>&1 cat out >> failed
done fi
} | bash %{S:2} | head -n 6 \ done | tee $l.txt
bash %{S:2} < $l.txt | head -n 6 \
> %{buildroot}/usr/share/doc/packages/yast2-trans-$l/status.txt > %{buildroot}/usr/share/doc/packages/yast2-trans-$l/status.txt
done done
if [ -s "failed" ]; then
echo "## PO FILES WITH FAILED CHECKS ###"
cat failed
exit 1
fi
popd popd
%clean %clean