]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
fixed error reporting when no files found
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Mar 2001 21:42:36 +0000 (21:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.2

rpm-find-lang

index 4b0b50c68f957ccc458221d9fd737c626df7a3bf..e08c36aab7455ba0b50edb7c846b75df085e4ff2 100644 (file)
@@ -12,6 +12,7 @@
 #work based on this file.
 
 #changes:
+# $Id$
 # 2001-01-08 Micha³ Kochanowicz <mkochano@pld.org.pl>
 #   * --all-name support for KDE.
 # 2000-11-28 Rafa³ Cygnarowski <pascalek@pld.org.pl>
@@ -126,8 +127,8 @@ s:'"$TOP_DIR"'::
 s:^\([^%].*\)::
 s:%lang(C) ::' >> $MO_NAME
 
-if [ "$(cat $MO_NAME | grep -v defattr | wc -w)" -le 0  ]; then
-        echo "Error: international files not found !"
+if [ "$(cat $MO_NAME | egrep -v '(^%defattr|^$)' | wc -w)" -le 0  ]; then
+        echo 'Error: international files not found !'
         exit 1
 fi
 
This page took 0.057308 seconds and 4 git commands to generate.