From 35a57bcd1c01ad05d8653338089a439049f042fd Mon Sep 17 00:00:00 2001 From: gavan Date: Tue, 2 Dec 2003 15:41:55 +0000 Subject: Treat an empty HOSTDEF file as if it didn't exist. From Greg A. Woods. Fixes PR pkg/22957. --- pkgtools/xpkgwedge/INSTALL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/xpkgwedge/INSTALL b/pkgtools/xpkgwedge/INSTALL index 037e6e0ae82..c2b82eac8c8 100644 --- a/pkgtools/xpkgwedge/INSTALL +++ b/pkgtools/xpkgwedge/INSTALL @@ -1,4 +1,4 @@ -# $NetBSD: INSTALL,v 1.8 2003/11/23 07:09:12 jlam Exp $ +# $NetBSD: INSTALL,v 1.9 2003/12/02 15:41:55 gavan Exp $ FONT_PROGS="@FONT_PROGS@" X11BASE=@X11BASE@ @@ -28,7 +28,7 @@ POST-INSTALL) ;; VIEW-INSTALL) - if [ ${PKG_PREFIX} = ${X11BASE} -o -f ${HOSTDEF} ]; then + if [ ${PKG_PREFIX} = ${X11BASE} -o -s ${HOSTDEF} ]; then ${ECHO} -n "Updating ${HOSTDEF}..." ${CP} -f ${HOSTDEF} ${HOSTDEF}.bak else -- cgit v1.2.3