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

[Xen-changelog] [xen-unstable] PV-GRUB: Check for errors when applying patches to GRUB



# HG changeset patch
# User Matt Wilson <msw@xxxxxxxxxx>
# Date 1333534154 -3600
# Node ID 1fa1ba79759ac934f03caf974b79fe6d4acca00f
# Parent  bef883ec33353d53f6b9d7b9c19901ec8da0e8dd
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>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r bef883ec3335 -r 1fa1ba79759a stubdom/Makefile
--- a/stubdom/Makefile  Tue Apr 03 18:25:56 2012 +0100
+++ b/stubdom/Makefile  Wed Apr 04 11:09:14 2012 +0100
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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