diff --git a/find-lang.sh b/find-lang.sh index d333e48..8b4dcc0 100755 --- a/find-lang.sh +++ b/find-lang.sh @@ -93,3 +93,9 @@ s:'"$TOP_DIR"':: s:^\([^%].*\):: s:%lang(C) :: ' >> $MO_NAME + +if ! grep -q / $MO_NAME; then + echo "No translations found for ${NAME} in ${TOP_DIR}" + exit 1 +fi +exit 0 diff --git a/macros b/macros index ba33e75..fbbf57f 100644 --- a/macros +++ b/macros @@ -127,3 +127,5 @@ export LANG\ LANG=C\ export LANG\ %{nil} + +%find_lang /usr/lib/rpm/redhat/find-lang.sh %{buildroot} diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 13a79fd..df9d2a2 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,7 +1,7 @@ Summary: Red Hat specific rpm configuration files. Name: redhat-rpm-config -Version: 7.3.91 -Release: 2 +Version: 7.3.92 +Release: 1 License: GPL Group: Development/System Source: redhat-rpm-config-%{version}.tar.gz @@ -27,7 +27,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_prefix}/lib/rpm/redhat %changelog -* Thu Jun 20 2002 Elliot Lee 7.3.91-2 +* Thu Jun 20 2002 Elliot Lee 7.3.92-1 - find-lang error detection from Havoc * Wed Jun 12 2002 Elliot Lee 7.3.91-1