Patchwork texi2html: Add check for directory existence

login
register
mail settings
Submitter Richard Purdie
Date Oct. 17, 2012, 2:34 p.m.
Message ID <1350484455.2185.84.camel@ted>
Download mbox | patch
Permalink /patch/38233/
State Accepted
Commit 25e060dde108a3d534be78f84a481ae7aeaec915
Headers show

Comments

Richard Purdie - Oct. 17, 2012, 2:34 p.m.
Without this, if configure fails, it won't be able to run again as the directory
already exists.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-extended/texi2html/texi2html_5.0.bb b/meta/recipes-extended/texi2html/texi2html_5.0.bb
index 4b220f5..f168416 100644
--- a/meta/recipes-extended/texi2html/texi2html_5.0.bb
+++ b/meta/recipes-extended/texi2html/texi2html_5.0.bb
@@ -16,7 +16,9 @@  inherit autotools gettext
 
 do_configure_prepend() {
 	# Make a directory for the old gettext setup
-	mkdir ${S}/po
+	if [ ! -d ${S}/po ]; then
+		mkdir ${S}/po
+	fi
 }
 
 do_configure_append() {