projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c343006
)
Avoid an error message from find when "${D}"/usr/share
author
Zac Medico
<zmedico@gentoo.org>
Sat, 13 Oct 2007 18:18:34 +0000
(18:18 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 13 Oct 2007 18:18:34 +0000
(18:18 -0000)
does not exist.
svn path=/main/trunk/; revision=8117
bin/misc-functions.sh
patch
|
blob
|
history
diff --git
a/bin/misc-functions.sh
b/bin/misc-functions.sh
index 6ea67226ee5e3bd2b3cf3177c724189927c49317..48611fabd28f493886d7bc5f55772b3ac64f503d 100755
(executable)
--- a/
bin/misc-functions.sh
+++ b/
bin/misc-functions.sh
@@
-326,7
+326,7
@@
install_qa_check() {
# 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]')
+ f=$(
[ -d "${D}"/usr/share ] &&
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"