diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-13 18:18:34 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-13 18:18:34 +0000 |
commit | ec42472010570e1ffa5667a4cb724ecd605fd95f (patch) | |
tree | 68b7f1b386d261b03c548c7690afc7c822c8ad4f | |
parent | c3430063cc940cf2bf1ef04afb56578e41d59894 (diff) | |
download | portage-ec42472010570e1ffa5667a4cb724ecd605fd95f.tar.gz portage-ec42472010570e1ffa5667a4cb724ecd605fd95f.tar.bz2 portage-ec42472010570e1ffa5667a4cb724ecd605fd95f.zip |
Avoid an error message from find when "${D}"/usr/share
does not exist.
svn path=/main/trunk/; revision=8117
-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 6ea67226e..48611fabd 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -326,7 +326,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" |