svn commit: r417821 - head/Mk/Scripts
Mathieu Arnold
mat at FreeBSD.org
Thu Jun 30 09:59:28 UTC 2016
Author: mat
Date: Thu Jun 30 09:59:27 2016
New Revision: 417821
URL: https://svnweb.freebsd.org/changeset/ports/417821
Log:
Only warn about symlinks that exist in the stage directory, or that
exist nowhere.
Sponsored by: Absolight
Modified:
head/Mk/Scripts/qa.sh (contents, props changed)
Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh Thu Jun 30 09:55:18 2016 (r417820)
+++ head/Mk/Scripts/qa.sh Thu Jun 30 09:59:27 2016 (r417821)
@@ -144,7 +144,14 @@ symlinks() {
rc=1
;;
/*)
- warn "Bad symlink '${l#${STAGEDIR}}' pointing to an absolute pathname '${link}'"
+ # Only warn for symlinks within the package.
+ if [ -e "${STAGEDIR}${link}" ]; then
+ warn "Bad symlink '${l#${STAGEDIR}}' pointing to an absolute pathname '${link}'"
+ fi
+ # Also warn if the symlink exists nowhere.
+ if [ ! -e "${STAGEDIR}${link}" -a ! -e "${link}" ]; then
+ warn "Symlink '${l#${STAGEDIR}}' pointing to '${link}' which does not exist in the stage directory or in localbase"
+ fi
;;
esac
# Use heredoc to avoid losing rc from find|while subshell.
More information about the svn-ports-head
mailing list