[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 1 of 3 v2] PV-GRUB: Check for errors when applying patches to GRUB



We want to ensure that patches apply cleanly without rejects. Bail if
patch returns a non-zero exit code.

Signed-off-by: Matt Wilson <msw@xxxxxxxxxx>

diff -r 4e1d091d10d8 -r 8124b28e88a4 stubdom/Makefile
--- a/stubdom/Makefile  Fri Mar 16 15:24:25 2012 +0000
+++ b/stubdom/Makefile  Tue Mar 20 18:28:29 2012 +0000
@@ -331,7 +331,7 @@ grub-upstream: grub-$(GRUB_VERSION).tar.
        tar xzf $<
        mv grub-$(GRUB_VERSION) $@
        for i in grub.patches/* ; do \
-               patch -d $@ -p1 < $$i ; \
+               patch -d $@ -p1 < $$i || exit 1; \
        done
 
 .PHONY: grub

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.