libgloss_3.0.0.bb: Consolidate rmdir with -p
PATCH 1/1 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 <[email protected]>
--- meta/recipes-core/newlib/libgloss_3.0.0.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-core/newlib/libgloss_3.0.0.bb +1 -2
@@ -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
---
2.18.0