Skip to contentSkip to conversation

libgloss_3.0.0.bb: Consolidate rmdir with -p

PATCH New Nathan Rossi 1 participant 1 message Sep 14, 2018

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 727062ca5d..e412153dab 100644
@@ -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