aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-22 16:06:13 (GMT)
committerZac Medico <zmedico@gentoo.org>2011-08-22 16:06:13 (GMT)
commit05b3e2b245630505fa5f581fbdf0531d00cb0b93 (patch)
tree2790f43b62464174503cbb0f1531a5eae9817594
parentebuild(1): show merge/noauto msg only if needed (diff)
downloadportage-05b3e2b245630505fa5f581fbdf0531d00cb0b93.zip
portage-05b3e2b245630505fa5f581fbdf0531d00cb0b93.tar.gz
portage-05b3e2b245630505fa5f581fbdf0531d00cb0b93.tar.bz2
dosym: QA warn if basename omitted (bug #379899)
-rwxr-xr-xbin/ebuild-helpers/dosym5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym
index 500dad0..3bec2b8 100755
--- a/bin/ebuild-helpers/dosym
+++ b/bin/ebuild-helpers/dosym
@@ -9,6 +9,11 @@ if [[ $# -ne 2 ]] ; then
exit 1
fi
+if [[ ${2} == */ ]] ; then
+ # implicit basename not allowed by PMS (bug #379899)
+ eqawarn "QA Notice: dosym target omits basename: '${2}'"
+fi
+
destdir=${2%/*}
[[ ! -d ${D}${destdir} ]] && dodir "${destdir}"