diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-08-22 10:35:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-08-22 10:35:44 -0700 |
commit | 3534aa843f22e84f5dd79a8306605d5178ec76c3 (patch) | |
tree | d52bb73327797162a810ff95786eec0cb69835f8 | |
parent | 05b3e2b245630505fa5f581fbdf0531d00cb0b93 (diff) | |
download | portage-3534aa843f22e84f5dd79a8306605d5178ec76c3.tar.gz portage-3534aa843f22e84f5dd79a8306605d5178ec76c3.tar.bz2 portage-3534aa843f22e84f5dd79a8306605d5178ec76c3.zip |
dosym: QA warn if target is existing dir
-rwxr-xr-x | bin/ebuild-helpers/dosym | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym index 3bec2b834..7dd4c6d51 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 |