[oe-commits] [meta-openembedded] 02/12: php: check for existance of directory before 'rmdir' in do_install_append_class-target
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 19 14:35:52 UTC 2016
martin_jansa pushed a commit to branch jethro-next
in repository meta-openembedded.
commit 8d8671a31c07e5afdffd84de90fdb5a4149b818a
Author: Derek Straka <derek at asterius.io>
AuthorDate: Sun Jan 24 08:35:18 2016 -0500
php: check for existance of directory before 'rmdir' in do_install_append_class-target
Signed-off-by: Derek Straka <derek at asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
(cherry picked from commit 7744e5992c17f78ec0fc0bf5af1208a037110469)
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
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 67d2362..793ffe8 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list