From b05975ba1e91840139d57e3fba43dff838da0355 Mon Sep 17 00:00:00 2001
From: "Cody A.W. Somerville" <cody-somerville@ubuntu.com>
Date: Fri, 27 Mar 2009 06:39:09 +0100
Subject: Checking for installer README.html to prevent build failure.

---
 helpers/lh_binary_includes | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes
index e37cc61..9dfeb18 100755
--- a/helpers/lh_binary_includes
+++ b/helpers/lh_binary_includes
@@ -155,8 +155,11 @@ then
 		DEBIAN_TOOLS_TXT="/tools/"
 	fi
 
-	sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_HTML}|g" binary/README.html
-	sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt
+	if [ -f binary/README.html ]
+	then
+		sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_HTML}|g" binary/README.html
+		sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt
+	fi
 fi
 
 # Creating stage file
-- 
cgit v1.0