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
commit17fa98a7c5c4f871c36ac8d56da1a2de9c862d7e (patch)
tree2868926376edd91d242bc6ff0a576e0147b30c12
parentf4111b99b0c62aa807e2ee6c219542d2d866ba0d (diff)
downloadpkgsrc-17fa98a7c5c4f871c36ac8d56da1a2de9c862d7e.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