If there are no patches then just do nothing.

Signed-off-by: Simon Horman <[EMAIL PROTECTED]>

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

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to