diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-13 18:19:34 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-13 18:19:34 +0000 |
commit | e6b18888a9c33136605891744ae63500bf42df9a (patch) | |
tree | e1e8c46f555c665e692bd106e8099a0e30411dce /bin/misc-functions.sh | |
parent | 50aba8dbfbd7dd61201e71d4863e16f09ffada58 (diff) | |
download | portage-e6b18888a9c33136605891744ae63500bf42df9a.tar.gz portage-e6b18888a9c33136605891744ae63500bf42df9a.tar.bz2 portage-e6b18888a9c33136605891744ae63500bf42df9a.zip |
Avoid an error message from find when "${D}"/usr/share
does not exist. (trunk r8117)
svn path=/main/branches/2.1.2/; revision=8118
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 8d0e8c600..1903fe0db 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -319,7 +319,7 @@ install_qa_check() { # Compiled python objects do not belong in /usr/share (FHS violation) # and can be a pain when upgrading python - f=$(find "${D}"/usr/share -name '*.py[co]') + f=$([ -d "${D}"/usr/share ] && find "${D}"/usr/share -name '*.py[co]') if [[ -n ${f} ]] ; then vecho -ne '\a\n' eqawarn "QA Notice: Precompiled python object files do not belong in /usr/share" |