common Makefile.common,1.103,1.104

Bill Nottingham (notting) fedora-extras-commits at redhat.com
Wed Jul 2 14:48:43 UTC 2008


Author: notting

Update of /cvs/extras/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19265

Modified Files:
	Makefile.common 
Log Message:
Protect bodhi target's xargs from single quotes in clog (ticket 645, <ville.syktta at iki.fi>)



Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- Makefile.common	10 Jun 2008 21:05:17 -0000	1.103
+++ Makefile.common	2 Jul 2008 14:48:12 -0000	1.104
@@ -454,7 +454,7 @@
 # bug=123,456\n\
 # all other text will be considered to be part of the update notes\n\
 type=" > bodhi.template
-	@grep '#' clog | xargs -n1 | sed -n -e 's,^#\([0-9]*\)$$,\1,p' | xargs | tr ' ' ',' > $(NAME).bugs
+	@grep -Z '#' clog | xargs -0n1 | sed -n -e 's,^#\([0-9]*\)$$,\1,p' | xargs | tr ' ' ',' > $(NAME).bugs
 	@if [ `cat $(NAME).bugs` ]; then echo "bug=`cat $(NAME).bugs`" >> bodhi.template; fi
 	@sed -e '/^#/d' < bodhi.template > bodhi.template.orig
 	@if [ -z "$$EDITOR" ]; then vi bodhi.template; else $$EDITOR bodhi.template; fi




More information about the fedora-extras-commits mailing list