summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgavan <gavan>2003-12-02 15:41:55 +0000
committergavan <gavan>2003-12-02 15:41:55 +0000
commit35a57bcd1c01ad05d8653338089a439049f042fd (patch)
tree2868926376edd91d242bc6ff0a576e0147b30c12 /pkgtools
parentf38023c4fb983418e08edb931ae698f6ddf1d52e (diff)
downloadpkgsrc-35a57bcd1c01ad05d8653338089a439049f042fd.tar.gz
Treat an empty HOSTDEF file as if it didn't exist.
From Greg A. Woods. Fixes PR pkg/22957.
Diffstat (limited to 'pkgtools')
-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