From 7e42a21601eba9f804593f04a55a4f7efe448b3e Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 26 Sep 2008 18:28:16 +0000 Subject: ttf-fonts: Fix do_install failing if no .ttc files exist in a font package --- packages/ttf-fonts/ttf.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc index e2be378194..78133f9eab 100644 --- a/packages/ttf-fonts/ttf.inc +++ b/packages/ttf-fonts/ttf.inc @@ -4,10 +4,7 @@ RRECOMMENDS += "font-update-common" do_install() { install -d ${D}${datadir}/fonts/truetype/ - for f in *.ttf *.ttc - do - [ -f $f ] && install -m 0644 $f ${D}${datadir}/fonts/truetype/ - done + find ./ -name "*.ttf" -or -name "*.ttc" -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; } pkg_postinst_append() { -- cgit v1.2.3