summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico2011-08-22 17:35:44 (GMT)
committerZac Medico2011-08-22 17:35:44 (GMT)
commit3534aa843f22e84f5dd79a8306605d5178ec76c3 (patch)
treed52bb73327797162a810ff95786eec0cb69835f8
parent05b3e2b245630505fa5f581fbdf0531d00cb0b93 (diff)
dosym: QA warn if target is existing dir
-rwxr-xr-xbin/ebuild-helpers/dosym3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym
index 3bec2b8..7dd4c6d 100755
--- a/bin/ebuild-helpers/dosym
+++ b/bin/ebuild-helpers/dosym
@@ -9,7 +9,8 @@ if [[ $# -ne 2 ]] ; then
exit 1
fi
-if [[ ${2} == */ ]] ; then
+if [[ ${2} == */ ]] || \
+ [[ -d ${D}${2} && ! -L ${D}${2} ]] ; then
# implicit basename not allowed by PMS (bug #379899)
eqawarn "QA Notice: dosym target omits basename: '${2}'"
fi