summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-15 23:49:06 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-15 23:49:06 +0000
commit16530c3e967fc54bfed7f1901dc189729f6c8996 (patch)
treeaf8059d2fbce105ca58aa69a6ff0703ed4dbb871
parentcc6144473a8ee9e926318c5221993d4c4a9f851e (diff)
downloadportage-16530c3e967fc54bfed7f1901dc189729f6c8996.tar.gz
portage-16530c3e967fc54bfed7f1901dc189729f6c8996.tar.bz2
portage-16530c3e967fc54bfed7f1901dc189729f6c8996.zip
In "QA Notice: Precompiled python" messages, use sed to strip the
leading ${D} from file paths. svn path=/main/trunk/; revision=8935
-rwxr-xr-xbin/misc-functions.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 1da66392c..d1b8c5eb3 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -326,7 +326,8 @@ install_qa_check() {
# 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]')
+ f=$([ -d "${D}"/usr/share ] && \
+ find "${D}"usr/share -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"