dosym: QA warn if basename omitted (bug #379899)
authorZac Medico <zmedico@gentoo.org>
Mon, 22 Aug 2011 16:06:13 +0000 (09:06 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 Aug 2011 16:06:13 +0000 (09:06 -0700)
bin/ebuild-helpers/dosym

index 500dad0944ef20113c2fa93afa4f2498f57baf78..3bec2b8341f11f1302d03f3f002b6ba8d0424873 100755 (executable)
@@ -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}"