diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-05 21:28:25 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-05 21:28:25 +0200 |
commit | 6403211fa4be5b0c6d47ea87c6be06b62184d33b (patch) | |
tree | 83b0bc49c64719c7757906a1b620d72777041482 | |
parent | EOFError can still be raised by array.fromfile() in Python >=2.6.6 and >=2.7.1. (diff) | |
download | portage-multirepo-6403211fa4be5b0c6d47ea87c6be06b62184d33b.tar.gz portage-multirepo-6403211fa4be5b0c6d47ea87c6be06b62184d33b.tar.bz2 portage-multirepo-6403211fa4be5b0c6d47ea87c6be06b62184d33b.zip |
Bug #301915: Add QA check for byte-compiled Python modules.
-rwxr-xr-x | bin/misc-functions.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 7726b9f2..5552f69e 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 |