From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 5 Aug 2010 19:28:25 +0000 (+0200) Subject: Bug #301915: Add QA check for byte-compiled Python modules. X-Git-Tag: v2.2_rc68~399 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6403211fa4be5b0c6d47ea87c6be06b62184d33b;p=portage.git Bug #301915: Add QA check for byte-compiled Python modules. --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 7726b9f23..5552f69e4 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -532,13 +532,12 @@ install_qa_check() { fi fi - # Compiled python objects do not belong in /usr/share (FHS violation) - # and can be a pain when upgrading python - f=$([ -d "${D}"/usr/share ] && \ - find "${D}"usr/share -name '*.py[co]' | sed "s:${D}:/:") + f=$(find "${D}" -name '*.py[co]' | sed "s:${D}:/:") if [[ -n ${f} ]] ; then vecho -ne '\a\n' - eqawarn "QA Notice: Precompiled python object files do not belong in /usr/share" + eqawarn "QA Notice: Byte-compiled Python modules have been found. python_mod_optimize()" + eqawarn " and python_mod_cleanup() functions python.eclass should be used to" + eqawarn " handle byte-compiled Python modules." eqawarn "${f}" vecho -ne '\a\n' fi