diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-15 23:50:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-15 23:50:17 +0000 |
commit | f2c370f8cbd01a26843a4dd20903edab0474ec07 (patch) | |
tree | d1a8436dff1cd4e481d900cf48945e7a1dc016d5 | |
parent | 0f99b8e8e3b9b757791a71dac52e8a6307fc78ab (diff) | |
download | portage-f2c370f8cbd01a26843a4dd20903edab0474ec07.tar.gz portage-f2c370f8cbd01a26843a4dd20903edab0474ec07.tar.bz2 portage-f2c370f8cbd01a26843a4dd20903edab0474ec07.zip |
In "QA Notice: Precompiled python" messages, use sed to strip the
leading ${D} from file paths. (trunk r8935)
svn path=/main/branches/2.1.2/; revision=8936
-rwxr-xr-x | bin/misc-functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 9e37fe118..3fe748760 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -319,7 +319,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" |