dosym: QA warn if target is existing dir
authorZac Medico <zmedico@gentoo.org>
Mon, 22 Aug 2011 17:35:44 +0000 (10:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 Aug 2011 17:35:44 +0000 (10:35 -0700)
bin/ebuild-helpers/dosym

index 3bec2b8341f11f1302d03f3f002b6ba8d0424873..7dd4c6d5146cea25f02e2f2a3748577edaf3c56a 100755 (executable)
@@ -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