enter_chroot: skip calling locale-gen if it isn't installed

This commit is contained in:
Michael Marineau 2015-12-10 11:33:57 -08:00
parent 1093592e4d
commit 863dda280f

View File

@ -159,6 +159,10 @@ promote_api_keys() {
}
generate_locales() {
# Going forward the SDK will no longer include locale-gen and instead
# glibc will just install the full locale archive, skipping this goo.
[[ -x "${FLAGS_chroot}/usr/sbin/locale-gen" ]] || return 0
# Make sure user's requested locales are available
# http://crosbug.com/19139
# And make sure en_US{,.UTF-8} are always available as