[oe-commits] Antonio Ospite : meta-toolchain: Run rmdir only if empty dirs are actually found.

git version control git at git.openembedded.org
Sun Feb 14 13:07:42 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4658a3fca9935187e267c4bb6e62f8bd5e497835
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4658a3fca9935187e267c4bb6e62f8bd5e497835

Author: Antonio Ospite <ospite at studenti.unina.it>
Date:   Sat Feb 13 09:32:37 2010 +0000

meta-toolchain: Run rmdir only if empty dirs are actually found.

Prevent a failure in do_populate_sdk when there are no empty
directories:
  /bin/rmdir: missing operand
  Try `/bin/rmdir --help' for more information.

See also http://tinderbox.openembedded.net/packages/478437/

Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
Acked-by: Denys Dmytriyenko <denis at denix.org>
Acked-by: Stefan Schmidt <stefan at datenfreihafen.org>

---

 recipes/meta/meta-toolchain.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb
index a8c27ec..3169425 100644
--- a/recipes/meta/meta-toolchain.bb
+++ b/recipes/meta/meta-toolchain.bb
@@ -67,7 +67,7 @@ do_populate_sdk() {
 	rm -Rf ${SDK_OUTPUT}/usr/lib
 
 	# Clean up empty directories from excluded packages
-	find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -0 /bin/rmdir
+	find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -r0 /bin/rmdir
 
 	install -d ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}
 	install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}/





More information about the Openembedded-commits mailing list