fix typos

This commit is contained in:
lilydjwg 2022-04-21 17:16:34 +08:00
parent 48f82e819b
commit f2aa4cad20
4 changed files with 7 additions and 5 deletions

2
.typos.toml Normal file
View File

@ -0,0 +1,2 @@
[default.extend-words]
mis = "mis"

View File

@ -701,7 +701,7 @@ repo
subrepo
Check the version in this subrepo. This field is optional.
When ommited all subrepos are queried.
When omitted all subrepos are queried.
This source supports :ref:`list options`.
@ -731,7 +731,7 @@ repo
Should be one of ``addon`` or ``package``. Packages in ``addon2-1.xml`` use ``addon`` and packages in ``repository2-1.xml`` use ``package``.
channel
Choose the target channel from one of ``stable``, ``beta``, ``dev`` or ``canary``. This option also accepts a comma-seperated list to pick from multiple channels. For example, the latest unstable version is picked with ``beta,dev,canary``. The default is ``stable``.
Choose the target channel from one of ``stable``, ``beta``, ``dev`` or ``canary``. This option also accepts a comma-separated list to pick from multiple channels. For example, the latest unstable version is picked with ``beta,dev,canary``. The default is ``stable``.
host_os
Choose the target OS for the tracked package from one of ``linux``, ``macosx``, ``windows``. The default is ``linux``. For OS-independent packages (e.g., Java JARs), this field is ignored.

View File

@ -27,7 +27,7 @@ class Response:
self.body = body
def json(self):
'''Convert reponse content to JSON.'''
'''Convert response content to JSON.'''
return _json.loads(self.body.decode('utf-8'))
class BaseSession:
@ -95,7 +95,7 @@ class BaseSession:
tries = i, exc_info = e)
continue
raise Exception('shoud not reach')
raise Exception('should not reach')
async def request_impl(
self, url: str, *,

View File

@ -135,7 +135,7 @@ async def get_version(
strip_release = conf.get('strip_release', False)
if srcpkg and pkg:
raise GetVersionError('Setting both srcpkg and pkg is ambigious')
raise GetVersionError('Setting both srcpkg and pkg is ambiguous')
elif not srcpkg and not pkg:
pkg = name