aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-22 17:35:44 (GMT)
committerZac Medico <zmedico@gentoo.org>2011-08-22 17:35:44 (GMT)
commit3534aa843f22e84f5dd79a8306605d5178ec76c3 (patch)
treed52bb73327797162a810ff95786eec0cb69835f8
parentdosym: QA warn if basename omitted (bug #379899) (diff)
downloadportage-3534aa843f22e84f5dd79a8306605d5178ec76c3.zip
portage-3534aa843f22e84f5dd79a8306605d5178ec76c3.tar.gz
portage-3534aa843f22e84f5dd79a8306605d5178ec76c3.tar.bz2
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