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

[Xen-changelog] Better fix to detect failed patch application when building



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 848f21d57278e296ba1f802a6189098c64b4c2d2
# Parent  7c951e3eb5ab4ab0a6de33a8f831c828d16b1ad4
Better fix to detect failed patch application when building
guest kernels.
Signed-off-by: Muli Ben-Yehuda <mulix@xxxxxxxxx>

diff -r 7c951e3eb5ab -r 848f21d57278 buildconfigs/Rules.mk
--- a/buildconfigs/Rules.mk     Wed Oct 19 10:53:00 2005
+++ b/buildconfigs/Rules.mk     Wed Oct 19 12:39:59 2005
@@ -80,11 +80,12 @@
        rm -f patches/*/.makedep
 
 ref-%/.valid-ref: pristine-%/.valid-pristine
+       set -e
        rm -rf $(@D)
        cp -al $(<D) $(@D)
-       which patch || exit 1
-       ([ -d patches/$* ] && \
-         for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || 
exit 1 ) ; done) || true
+       if [ -d patches/$* ] ; then \
+           for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || 
exit 1 ) ; done ; \
+       fi
        touch $@ # update timestamp to avoid rebuild
 endif
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.