aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/Scripts')
-rw-r--r--Mk/Scripts/qa.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index dfcd80c16ea3..30e228c787ca 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -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.