From a740775726b6939e7ffc8234faab78bf39f31e36 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sun, 31 May 2009 12:23:02 +0000 Subject: Remove fonts.dir when it is empty. Spotted by: QAT --- japanese/font-ume/files/pkg-install.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'japanese/font-ume') diff --git a/japanese/font-ume/files/pkg-install.in b/japanese/font-ume/files/pkg-install.in index ae681a45ad70..56994519c7b0 100644 --- a/japanese/font-ume/files/pkg-install.in +++ b/japanese/font-ume/files/pkg-install.in @@ -97,5 +97,8 @@ DEINSTALL) exec < fonts.dir; rm -f fonts.dir (echo "${_num}"; cat) > fonts.dir chmod 0444 fonts.dir + if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then + rm -f fonts.dir + fi ;; esac -- cgit v1.2.3