Author: glen                         Date: Wed Mar  7 16:49:21 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- ignoring __find.* files when they are not newer than $TOP_DIR should save the 
trouble of outdated filelists

---- Files affected:
SOURCES:
   rpm-find-lang (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SOURCES/rpm-find-lang
diff -u SOURCES/rpm-find-lang:1.18 SOURCES/rpm-find-lang:1.19
--- SOURCES/rpm-find-lang:1.18  Tue Mar  6 23:30:03 2007
+++ SOURCES/rpm-find-lang       Wed Mar  7 17:49:16 2007
@@ -113,7 +113,7 @@
 
 echo '%defattr(644,root,root,755)' > $MO_NAME
 
-if [ ! -f __find.files ]; then
+if [ ! -f __find.files ] && [ __find.files -nt "$TOP_DIR" ]; then
        find $TOP_DIR -type f -name '*.mo' | xargs -r file | egrep -v ', 1 
messages$' | \
        sed -e '
                s/:.*//
@@ -135,7 +135,7 @@
 s:%lang(C) ::
 s:^\$::' | egrep -v '^$' >> $MO_NAME
 
-if [ ! -f __find.dirs ]; then
+if [ ! -f __find.dirs ] && [ __find.dirs -nt "$TOP_DIR" ]; then
        find $TOP_DIR -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs
 else
        echo "$PROG: Using cached __find.dirs"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm-find-lang?r1=1.18&r2=1.19&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to