From ce17b410ab2437557a6a6f3c2d4001e68744ff5b Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Wed, 4 Sep 2002 18:18:32 +0000 Subject: [PATCH] - don't complain on non-X11 platforms where install-x11-fonts script does not exist. --- bochs/build/redhat/bochs.rpmspec.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bochs/build/redhat/bochs.rpmspec.template b/bochs/build/redhat/bochs.rpmspec.template index bbea96307..6b0eee7ce 100644 --- a/bochs/build/redhat/bochs.rpmspec.template +++ b/bochs/build/redhat/bochs.rpmspec.template @@ -50,7 +50,10 @@ and other OS's, all on your workstation. rm -rf $RPM_BUILD_ROOT fi %post - /usr/share/bochs/install-x11-fonts + # for non-X-windows RPM, this script doesn't exist. + if test -x /usr/share/bochs/install-x11-fonts; then + /usr/share/bochs/install-x11-fonts + fi %preun # clean up the bochsout.txt that is always produced if you # run bochs-dlx.