[oe-commits] [meta-openembedded] 25/34: php: check for existance of directory before 'rmdir' in do_install_append_class-target

git at git.openembedded.org git at git.openembedded.org
Wed Jan 27 12:03:22 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 9d1ca0987e3d5aabe14dd69477a715a014ce38db
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>
---
 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