[redhat-rpm-config: 7/215] find-lang fixes

Panu Matilainen pmatilai at fedoraproject.org
Wed Apr 2 10:18:55 UTC 2014


commit 3ee6bad5b99ab12d786901af2a32efcf46e3a456
Author: Elliot Lee <sopwith at redhat.com>
Date:   Thu Jun 20 20:56:07 2002 +0000

    find-lang fixes

 find-lang.sh           |    6 ++++++
 macros                 |    2 ++
 redhat-rpm-config.spec |    6 +++---
 3 files changed, 11 insertions(+), 3 deletions(-)
---
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 <sopwith at redhat.com> 7.3.91-2
+* Thu Jun 20 2002 Elliot Lee <sopwith at redhat.com> 7.3.92-1
 - find-lang error detection from Havoc
 
 * Wed Jun 12 2002 Elliot Lee <sopwith at redhat.com> 7.3.91-1


More information about the scm-commits mailing list