summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-12 05:53:05 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-12 05:53:05 +0000
commitaafbf8ca710daef00952c6d7c712c4a2cc28b693 (patch)
treee7b004f925a092b0cac64d9a3a47f6d9087a9341 /bin/misc-functions.sh
parent25710c946ee439e3eee94c3417648c873e66399a (diff)
downloadportage-aafbf8ca710daef00952c6d7c712c4a2cc28b693.tar.gz
portage-aafbf8ca710daef00952c6d7c712c4a2cc28b693.tar.bz2
portage-aafbf8ca710daef00952c6d7c712c4a2cc28b693.zip
add QA check for .pyc/.pyo files in /usr/share
(trunk r7990) svn path=/main/branches/2.1.2/; revision=8060
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index eecf21855..8d0e8c600 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -317,6 +317,16 @@ install_qa_check() {
[[ ${abort} == "yes" ]] && hasq stricter ${FEATURES} && die "poor code kills airplanes"
fi
+ # 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]')
+ if [[ -n ${f} ]] ; then
+ vecho -ne '\a\n'
+ eqawarn "QA Notice: Precompiled python object files do not belong in /usr/share"
+ eqawarn "${f}"
+ vecho -ne '\a\n'
+ fi
+
# Portage regenerates this on the installed system.
rm -f "${D}"/usr/share/info/dir{,.gz,.bz2}