[Lunar-commits] <moonbase> mkfontdir: guard against fonts symlink
Paul Bredbury
brebs at lunar-linux.org
Wed Mar 16 12:29:56 CET 2011
commit 29a95df936a32f49e3e2c57b7d9ce1a7c7f274fb
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Wed Mar 16 18:29:56 2011 +0700
mkfontdir: guard against fonts symlink
As in fontconfig's POST_INSTALL.
This happened to me at one point, a couple of months ago.
---
xorg7/app/mkfontdir/POST_INSTALL | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/xorg7/app/mkfontdir/POST_INSTALL b/xorg7/app/mkfontdir/POST_INSTALL
new file mode 100644
index 0000000..10f57c4
--- /dev/null
+++ b/xorg7/app/mkfontdir/POST_INSTALL
@@ -0,0 +1,4 @@
+# This can happen, strangely
+if [ -h /usr/share/fonts/fonts ] ; then
+ rm -f /usr/share/fonts/fonts
+fi
More information about the Lunar-commits
mailing list