summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2000-06-03 20:58:46 +0000
committertron <tron>2000-06-03 20:58:46 +0000
commitf1c68b9f9d01c3644b2d5aef5edcfccf9828a576 (patch)
treef8ba6847470db543d51456bbfa7bb77ca8ef68f4 /mk
parente12541ad74fca9f1c6adcef71cadfc49d081e53f (diff)
downloadpkgsrc-f1c68b9f9d01c3644b2d5aef5edcfccf9828a576.tar.gz
Remove links in "package-links" target before trying to create them to
avoid failure if they already exist. We cannot use "ln -f" here because it doesn't work as expected under Solaris.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 65418d6027d..374c06427cf 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.467 2000/06/03 20:31:27 mycroft Exp $
+# $NetBSD: bsd.pkg.mk,v 1.468 2000/06/03 20:58:46 tron Exp $
#
# This file is in the public domain.
#
@@ -1376,6 +1376,7 @@ package-links:
exit 1; \
fi; \
fi; \
+ ${RM} -f ${PACKAGES}/$$cat/${PKGNAME}${PKG_SUFX}; \
${LN} -s ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PACKAGES}/$$cat; \
done;
.endif