[oe-commits] [openembedded-core] 09/45: libgloss_3.0.0.bb: Consolidate rmdir with -p
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 21 15:24:55 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit ba2f5ad890ecf94f541d84cc04669a6b02990d39
Author: Nathan Rossi <nathan at nathanrossi.com>
AuthorDate: Fri Sep 14 11:10:07 2018 +0000
libgloss_3.0.0.bb: Consolidate rmdir with -p
Consolidate the rmdir of multiple directories with the use of -p to
delete the leaf empty directory and any empty ancestor directories.
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-core/newlib/libgloss_3.0.0.bb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/recipes-core/newlib/libgloss_3.0.0.bb b/meta/recipes-core/newlib/libgloss_3.0.0.bb
index 727062c..e412153 100644
--- a/meta/recipes-core/newlib/libgloss_3.0.0.bb
+++ b/meta/recipes-core/newlib/libgloss_3.0.0.bb
@@ -21,8 +21,7 @@ do_install_append() {
mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir}
# Remove original directory
- rmdir ${D}${prefix}/${TARGET_SYS}/lib
- rmdir ${D}${prefix}/${TARGET_SYS}
+ rmdir -p --ignore-fail-on-non-empty ${D}${prefix}/${TARGET_SYS}/lib
}
# Split packages correctly
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list