]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- need exact string in .cvsignore check, so use awk strcmp
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 6 May 2009 22:33:04 +0000 (22:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.580

builder.sh

index 1e404ed86c14ec27174ab1c619b1763eab3b2a57..c9fe708dd4b465d6e3f94c48f7652526bfcd87fd 100644 (file)
@@ -829,7 +829,9 @@ cvsignore_df() {
                return
        fi
        cvsignore=${PACKAGE_DIR}/.cvsignore
-       if ! grep -q "^$1\$" $cvsignore 2> /dev/null; then
+
+       # add only if not yet there
+       if awk -vf="$1" '$0 == f {exit 1}' $cvsignore; then
                echo "$1" >> $cvsignore
        fi
 }
This page took 0.032106 seconds and 4 git commands to generate.