summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2003-12-02 15:41:55 +0000
committergavan <gavan@pkgsrc.org>2003-12-02 15:41:55 +0000
commitb0a851b1e94788b7c3b8b535c300f58d6d57e199 (patch)
tree2868926376edd91d242bc6ff0a576e0147b30c12
parent698d0e2d6ce329a8481f5a55d0b16c9262efeafe (diff)
downloadpkgsrc-b0a851b1e94788b7c3b8b535c300f58d6d57e199.tar.gz
Treat an empty HOSTDEF file as if it didn't exist.
From Greg A. Woods. Fixes PR pkg/22957.
-rw-r--r--pkgtools/xpkgwedge/INSTALL4
1 files changed, 2 insertions, 2 deletions
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