ttf-fonts: Fix do_install failing if no .ttc files exist in a font package
authorDaniel Willmann <daniel@totalueberwachung.de>
Fri, 26 Sep 2008 18:28:16 +0000 (18:28 +0000)
committerDaniel Willmann <daniel@totalueberwachung.de>
Fri, 26 Sep 2008 18:28:16 +0000 (18:28 +0000)
packages/ttf-fonts/ttf.inc

index e2be378..78133f9 100644 (file)
@@ -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() {