summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-10-07 17:52:51 +0000
committerMike Frysinger <vapier@gentoo.org>2007-10-07 17:52:51 +0000
commited01b239078de37c4984ec4675b4e2eda01b14d0 (patch)
tree6b251576e6412cc85f4abaf6f35ca959d19ed606 /bin/misc-functions.sh
parenteef44857d01076611478545a414a35aea9abe184 (diff)
downloadportage-ed01b239078de37c4984ec4675b4e2eda01b14d0.tar.gz
portage-ed01b239078de37c4984ec4675b4e2eda01b14d0.tar.bz2
portage-ed01b239078de37c4984ec4675b4e2eda01b14d0.zip
add QA check for .pyc/.pyo files in /usr/share
svn path=/main/trunk/; revision=7990
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 04c73fc65..6ea67226e 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -324,6 +324,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}