aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2016-01-24 08:35:18 -0500
committerArmin Kuster <akuster808@gmail.com>2016-09-18 12:05:39 -0700
commit8d8671a31c07e5afdffd84de90fdb5a4149b818a (patch)
treeb097e08b87627291df468ba07ee050b3d15fa876
parent2867d498d4eae3062c95b704082e69187e625eb4 (diff)
downloadmeta-openembedded-8d8671a31c07e5afdffd84de90fdb5a4149b818a.tar.gz
meta-openembedded-8d8671a31c07e5afdffd84de90fdb5a4149b818a.tar.bz2
meta-openembedded-8d8671a31c07e5afdffd84de90fdb5a4149b818a.zip
php: check for existance of directory before 'rmdir' in do_install_append_class-target
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> (cherry picked from commit 7744e5992c17f78ec0fc0bf5af1208a037110469) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/php/php.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 67d2362ab..793ffe888 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