[Linux-ha-dev] [patch 05/12] debian: Allow debian/apply to cope with zero patches merged

Simon Horman horms at verge.net.au
Thu Mar 27 20:46:30 MDT 2008


If there are no patches then just do nothing.

Signed-off-by: Simon Horman <horms at verge.net.au>

Index: heartbeat/debian/apply
===================================================================
--- heartbeat.orig/debian/apply	2008-03-27 13:04:08.000000000 +0900
+++ heartbeat/debian/apply	2008-03-27 13:05:31.000000000 +0900
@@ -166,6 +166,10 @@ revision=${version#*-}
 
 home="$PWD/debian/patches"
 
+if [ ! -e "$home/series/" ]; then
+	warn "No patches."
+	exit 0
+fi
 
 if [ -f version.Debian ]; then
 	current=$(cat version.Debian)

-- 

-- 
Horms



More information about the Linux-HA-Dev mailing list