summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-13 18:19:34 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-13 18:19:34 +0000
commite6b18888a9c33136605891744ae63500bf42df9a (patch)
treee1e8c46f555c665e692bd106e8099a0e30411dce /bin/misc-functions.sh
parent50aba8dbfbd7dd61201e71d4863e16f09ffada58 (diff)
downloadportage-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-xbin/misc-functions.sh2
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"