pld-ftp-admin: wwwbin/consistency-check.sh escape "+" for sed pattern (cros...

glen glen at pld-linux.org
Mon Aug 6 17:38:32 CEST 2012


Author: glen                         Date: Mon Aug  6 15:38:31 2012 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
escape "+" for sed pattern (crossmingw32-gcc-c++-4.5.2-2)

---- Files affected:
pld-ftp-admin/wwwbin:
   consistency-check.sh (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: pld-ftp-admin/wwwbin/consistency-check.sh
diff -u pld-ftp-admin/wwwbin/consistency-check.sh:1.7 pld-ftp-admin/wwwbin/consistency-check.sh:1.8
--- pld-ftp-admin/wwwbin/consistency-check.sh:1.7	Mon Aug  6 17:37:35 2012
+++ pld-ftp-admin/wwwbin/consistency-check.sh	Mon Aug  6 17:38:26 2012
@@ -39,6 +39,8 @@
 	# create N-V-R -> N list
 	local pkg error message srpm out
 	while read pkg; do
+		pkg=$(echo "$pkg" | sed -e 's,+,\\+,g')
+
 		# there's no space between the columns, so need to match with known archs
 		# see https://bugs.launchpad.net/poldek/+bug/1031767
 		out=$(sed -rne "s/^($pkg)\.(x86_64|i686|noarch)(.+)-[^-]+-[^-]+\.src\.rpm$/\1\t\3/p" $t2)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-ftp-admin/wwwbin/consistency-check.sh?r1=1.7&r2=1.8



More information about the pld-cvs-commit mailing list