From: Zac Medico Date: Mon, 22 Aug 2011 16:06:13 +0000 (-0700) Subject: dosym: QA warn if basename omitted (bug #379899) X-Git-Tag: v2.2.0_alpha52~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05b3e2b245630505fa5f581fbdf0531d00cb0b93;p=portage.git dosym: QA warn if basename omitted (bug #379899) --- diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym index 500dad094..3bec2b834 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}"