packages: builder - need exact string in .cvsignore check, so use awk strcmp

glen glen at pld-linux.org
Thu May 7 00:33:09 CEST 2009


Author: glen                         Date: Wed May  6 22:33:09 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- need exact string in .cvsignore check, so use awk strcmp

---- Files affected:
packages:
   builder (1.579 -> 1.580) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.579 packages/builder:1.580
--- packages/builder:1.579	Thu May  7 00:25:31 2009
+++ packages/builder	Thu May  7 00:33:04 2009
@@ -829,7 +829,9 @@
 		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
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.579&r2=1.580&f=u



More information about the pld-cvs-commit mailing list