From 863dda280ff84bca17aba22ae6e0c3f5180ca8d3 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 10 Dec 2015 11:33:57 -0800 Subject: [PATCH] enter_chroot: skip calling locale-gen if it isn't installed --- sdk_lib/enter_chroot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk_lib/enter_chroot.sh b/sdk_lib/enter_chroot.sh index 2434960e05..d4328ce175 100755 --- a/sdk_lib/enter_chroot.sh +++ b/sdk_lib/enter_chroot.sh @@ -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