]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- logic fix
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Mar 2007 17:05:20 +0000 (17:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.20

rpm-find-lang

index 97daa758fc5525c2cb2984ac6d58364d91ffe11a..9a5f6cd69dc8b16d205620330084a15e07c118c2 100644 (file)
@@ -113,7 +113,7 @@ done
 
 echo '%defattr(644,root,root,755)' > $MO_NAME
 
-if [ ! -f __find.files ] && [ __find.files -nt "$TOP_DIR" ]; then
+if [ ! -f __find.files ] || [ "$TOP_DIR" -nt __find.files ]; then
        find $TOP_DIR -type f -name '*.mo' | xargs -r file | egrep -v ', 1 messages$' | \
        sed -e '
                s/:.*//
@@ -135,7 +135,7 @@ s:^\([^%].*\)::
 s:%lang(C) ::
 s:^\$::' | egrep -v '^$' >> $MO_NAME
 
-if [ ! -f __find.dirs ] && [ __find.dirs -nt "$TOP_DIR" ]; then
+if [ ! -f __find.dirs ] || [ "$TOP_DIR" -nt __find.dirs ]; then
        find $TOP_DIR -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs
 else
        echo "$PROG: Using cached __find.dirs"
This page took 0.044482 seconds and 4 git commands to generate.