diff mbox series

[oe,meta-oe,1/2] zsh: Delete ${D}/usr if empty

Message ID 20180829031720.26437-1-raj.khem@gmail.com
State Accepted
Commit 901af82e7d4be4777bbb2b8fba04f2f41f454c09
Headers show
Series [oe,meta-oe,1/2] zsh: Delete ${D}/usr if empty | expand

Commit Message

Khem Raj Aug. 29, 2018, 3:17 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-shells/zsh/zsh_5.4.2.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.18.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb b/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb
index 100c449f2b..3aab65bf5b 100644
--- a/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb
+++ b/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb
@@ -49,6 +49,7 @@  do_configure () {
 
 do_install_append () {
     rm -fr ${D}/usr/share
+    rmdir --ignore-fail-on-non-empty ${D}/usr
 }
 
 pkg_postinst_${PN} () {