From 8d8671a31c07e5afdffd84de90fdb5a4149b818a Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Sun, 24 Jan 2016 08:35:18 -0500 Subject: php: check for existance of directory before 'rmdir' in do_install_append_class-target Signed-off-by: Derek Straka Signed-off-by: Martin Jansa (cherry picked from commit 7744e5992c17f78ec0fc0bf5af1208a037110469) Signed-off-by: Armin Kuster --- meta-oe/recipes-devtools/php/php.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc index 67d2362abe..793ffe8885 100644 --- a/meta-oe/recipes-devtools/php/php.inc +++ b/meta-oe/recipes-devtools/php/php.inc @@ -166,7 +166,9 @@ do_install_append_class-target() { TMP=`dirname ${D}/${TMPDIR}` while test ${TMP} != ${D}; do - rmdir ${TMP} + if [ -d ${TMP} ]; then + rmdir ${TMP} + fi TMP=`dirname ${TMP}`; done -- cgit 1.2.3-korg