summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-21 21:44:23 +0000
committerjlam <jlam@pkgsrc.org>2007-08-21 21:44:23 +0000
commitf7addad279e6d9bddee039abf2c4e73c32086181 (patch)
treedc1d2e78efc6e5c8f616b42bc14ec46f3e3bce9e /mk
parent1d3dfbd54125f85dbf527bc85f4311ea835ec2e6 (diff)
downloadpkgsrc-f7addad279e6d9bddee039abf2c4e73c32086181.tar.gz
Allow the existence of symlinks that point nowhere.
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-files.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/check/check-files.mk b/mk/check/check-files.mk
index beb1273d28f..4189c918d17 100644
--- a/mk/check/check-files.mk
+++ b/mk/check/check-files.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-files.mk,v 1.17 2007/08/13 05:05:11 rillig Exp $
+# $NetBSD: check-files.mk,v 1.18 2007/08/21 21:44:23 jlam Exp $
#
# This file checks that the list of installed files matches the PLIST.
# For that purpose it records the file list of LOCALBASE before and
@@ -261,7 +261,7 @@ ${_CHECK_FILES_MISSING}: ${_CHECK_FILES_EXPECTED} ${_CHECK_FILES_ADDED}
${DIFF} -u ${_CHECK_FILES_EXPECTED} ${_CHECK_FILES_ADDED} | \
${GREP} '^-[^-]' | ${SED} "s|^-||" | \
while read file; do \
- ${TEST} -f "$$file" || ${ECHO} "$$file"; \
+ ${TEST} -f "$$file" -o -h "$$file" || ${ECHO} "$$file"; \
done > ${.TARGET}
${_CHECK_FILES_MISSING_REAL}: ${_CHECK_FILES_MISSING}
@@ -283,7 +283,7 @@ ${_CHECK_FILES_EXTRA}: ${_CHECK_FILES_EXPECTED} ${_CHECK_FILES_ADDED}
${DIFF} -u ${_CHECK_FILES_EXPECTED} ${_CHECK_FILES_ADDED} | \
${GREP} '^+[^+]' | ${SED} "s|^+||" | \
while read file; do \
- ${TEST} ! -f "$$file" || ${ECHO} "$$file"; \
+ ${TEST} ! -f "$$file" -a ! -h "$$file" || ${ECHO} "$$file"; \
done > ${.TARGET}
${_CHECK_FILES_ERRMSG.prefix}: \