[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[2685] Handle patch(1) failure
From: |
Robert Millan |
Subject: |
[2685] Handle patch(1) failure |
Date: |
Sat, 07 Nov 2009 12:56:44 +0000 |
Revision: 2685
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2685
Author: robertmh
Date: 2009-11-07 12:56:42 +0000 (Sat, 07 Nov 2009)
Log Message:
-----------
Handle patch(1) failure
Modified Paths:
--------------
people/robertmh/svn2bzr/process_commit
Modified: people/robertmh/svn2bzr/process_commit
===================================================================
--- people/robertmh/svn2bzr/process_commit 2009-11-06 22:03:57 UTC (rev
2684)
+++ people/robertmh/svn2bzr/process_commit 2009-11-07 12:56:42 UTC (rev
2685)
@@ -41,7 +41,11 @@
echo "r${revision} | ${username} | `date -d @${date}` | `echo ${message} | cut
-c -30`"
if svn diff -r ${previous}:${revision} ${url} > ${tmp} ; then
- patch -p0 < ${tmp} > /dev/null
+ if ! patch -p0 < ${tmp} > /dev/null ; then
+ echo "Patch failed to apply: ${tmp}" >&2
+ trap - EXIT
+ exit 1
+ fi
else
cat << EOF >&2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [2685] Handle patch(1) failure,
Robert Millan <=