projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
163fc1a
)
python-utils-r1.eclass: python_export_utf8_locale: do not spew warnings when `locale...
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 10 Oct 2015 18:22:15 +0000
(14:22 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 10 Oct 2015 18:22:54 +0000
(14:22 -0400)
If the `locale` isn't available, there's nothing this func can do,
so just return quickly and assume the system is sane.
eclass/python-utils-r1.eclass
patch
|
blob
|
history
diff --git
a/eclass/python-utils-r1.eclass
b/eclass/python-utils-r1.eclass
index 622cb591c42d864871ec865f0224ab76f0ed7960..a80bdf436eb88e29c149f5a2d082b9d6b0c735bd 100644
(file)
--- a/
eclass/python-utils-r1.eclass
+++ b/
eclass/python-utils-r1.eclass
@@
-1117,6
+1117,9
@@
python_fix_shebang() {
python_export_utf8_locale() {
debug-print-function ${FUNCNAME} "${@}"
+ # If the locale program isn't available, just return.
+ type locale >/dev/null || return 0
+
if [[ $(locale charmap) != UTF-8 ]]; then
if [[ -n ${LC_ALL} ]]; then
ewarn "LC_ALL is set to a locale with a charmap other than UTF-8."