installer: fix typos
Fix some typos.
BUG=none
TEST=none
Change-Id: Ia3df2d5359cba5372bf68a5b8f9ddf6125beab9f
Reviewed-on: https://chromium-review.googlesource.com/452418
Commit-Ready: Youcheng Syu <youcheng@chromium.org>
Tested-by: Youcheng Syu <youcheng@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>
diff --git a/py/toolkit/installer.py b/py/toolkit/installer.py
index f4c645f..69f645b 100755
--- a/py/toolkit/installer.py
+++ b/py/toolkit/installer.py
@@ -20,7 +20,7 @@
import sys
import tempfile
-import factory_common # pylint: disable=W0611
+import factory_common # pylint: disable=unused-import
from cros.factory.test import event_log
from cros.factory.test.env import paths
from cros.factory.tools import install_symlinks
@@ -217,7 +217,7 @@
file "factory/init/main.d/@app.sh" is not executable.
Therefore, we enable an app by removing file "disable-@app" and creating
- file "enable-@app", and vise versa.
+ file "enable-@app", and vice versa.
"""
app_enable = os.path.join(self._usr_local_dest,
'factory', 'init', 'main.d', 'enable-' + app)
@@ -379,7 +379,7 @@
# Give overlordd execution permission
os.chmod(os.path.join(output_dir, 'overlordd'), 0755)
- print "Extarcted overlord under '%s'" % output_dir
+ print "Extracted overlord under '%s'" % output_dir
def main():
@@ -450,7 +450,7 @@
parser.add_argument('--apps', type=lambda s: s.split(','), default=None,
help=('Enable or disable some apps under '
'factory/init/main.d/. Use prefix "-" to disable, '
- 'prefix "+" to enable, and use "," to seperate. '
+ 'prefix "+" to enable, and use "," to separate. '
'For example: --apps="-goofy,+whale_servo"'))
args = parser.parse_args()
@@ -520,7 +520,7 @@
installer.Install()
if __name__ == '__main__':
- # makself inteprets "LICENSE" environment variable string as license text and
+ # makself interprets "LICENSE" environment variable string as license text and
# will prompt user to accept before installation. For factory toolkit, we
# don't want any user interaction in installation and the license is already
# covered by ebuild or download platform like CPFE.