Skip to content

Commit b26115f

Browse files
randomasciiChromium LUCI CQ
authored and
Chromium LUCI CQ
committed
Fix Linux font install for Python 3
install-chromeos-fonts.py references python, which is not guaranteed to be installed (at least not on Googler machines). Instead, python2 and python3 are guaranteed available (in depot_tools if not elsewhere). This leads to this error message: Installing Chrome OS fonts. /usr/bin/env: ‘python’: No such file or directory ERROR: The installation of the Chrome OS default fonts failed. The remainder of the error message is misleading (in this context) and has a spelling error which this also fixes. Change-Id: Ie05a95d654a51448240f3910dd4bb54a32f54336 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3539216 Reviewed-by: Thomas Anderson <[email protected]> Commit-Queue: Bruce Dawson <[email protected]> Cr-Commit-Position: refs/heads/main@{#983457}
1 parent 428150f commit b26115f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/install-build-deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ if [ "$do_inst_chromeos_fonts" != "0" ]; then
736736
echo "This is expected if your repo is installed on a remote file system."
737737
fi
738738
echo "It is recommended to install your repo on a local file system."
739-
echo "You can skip the installation of the Chrome OS default founts with"
739+
echo "You can skip the installation of the Chrome OS default fonts with"
740740
echo "the command line option: --no-chromeos-fonts."
741741
exit 1
742742
fi

build/linux/install-chromeos-fonts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright 2013 The Chromium Authors. All rights reserved.
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.

0 commit comments

Comments
 (0)