Skip to contentSkip to conversation

cifs-utils: add --ignore-fail-on-non-empty for rmdir

PATCH Applied Robert Yang 2 participants 2 messages Oct 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs-utils: add --ignore-fail-on-non-empty for rmdir

Add --ignore-fail-on-non-empty for rmdir in case there are files in the directories.

---
 meta-networking/recipes-support/cifs/cifs-utils_git.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/cifs/cifs-utils_git.bb +1 -1
index fc7a4d3..d8de714 100644
@@ -20,7 +20,7 @@ inherit autotools pkgconfig
 do_install_append() {
     # Remove empty /usr/bin and /usr/sbin directories since the mount helper
     # is installed to /sbin
-    rmdir ${D}${bindir} ${D}${sbindir}
+    rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir}
 }
 
 RRECOMMENDS_${PN} = "kernel-module-cifs"
Signature · 1 line
1.7.10.4
#1 lore raw

Merged, thanks.
-J.

Quoted 21 lines · [[oe] [meta-networking] [PATCH] cifs-utils: add --ignore-fail-on-non-empty for…

Add --ignore-fail-on-non-empty for rmdir in case there are files in the directories.

---
 meta-networking/recipes-support/cifs/cifs-utils_git.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/cifs/cifs-utils_git.bb +1 -1
index fc7a4d3..d8de714 100644
@@ -20,7 +20,7 @@ inherit autotools pkgconfig
 do_install_append() {
     # Remove empty /usr/bin and /usr/sbin directories since the mount helper
     # is installed to /sbin
-    rmdir ${D}${bindir} ${D}${sbindir}
+    rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir}
 }
 
 RRECOMMENDS_${PN} = "kernel-module-cifs"
Signature · 2 lines
-Joe MacDonald.
:wq