From a2a7faee92c711494471faec105431fe15f49bdc Mon Sep 17 00:00:00 2001 From: chentanjun <2799194073@qq.com> Date: Tue, 27 Aug 2019 14:38:03 +0800 Subject: [PATCH] fix-up the document spelling mistake --- tuf/ATTACKS.md | 2 +- tuf/developer_tool.py | 2 +- tuf/download.py | 2 +- tuf/repository_lib.py | 2 +- tuf/scripts/repo.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tuf/ATTACKS.md b/tuf/ATTACKS.md index e331ef90..10a7636e 100644 --- a/tuf/ATTACKS.md +++ b/tuf/ATTACKS.md @@ -200,7 +200,7 @@ $ python basic_client.py --repo http://localhost:8001 At this point, part of the "file1.txt" file should have been fetched. That is, up to 31 bytes of it should have been downloaded, and the rest of the maliciously -appended data ignored. If we inspect the logger, we'd disover the following: +appended data ignored. If we inspect the logger, we'd discover the following: ```Bash [2016-10-06 21:37:39,092 UTC] [tuf.download] [INFO] [_download_file:235@download.py] diff --git a/tuf/developer_tool.py b/tuf/developer_tool.py index 8629a8ae..1d519c41 100755 --- a/tuf/developer_tool.py +++ b/tuf/developer_tool.py @@ -519,7 +519,7 @@ def create_new_project(project_name, metadata_directory, location_in_repository: An optional argument to hold the "prefix" or the expected location for - the project files in the "upstream" respository. This value is only + the project files in the "upstream" repository. This value is only used to sign metadata in a way that it matches the future location of the files. diff --git a/tuf/download.py b/tuf/download.py index 8de805e3..ccf3e6cd 100755 --- a/tuf/download.py +++ b/tuf/download.py @@ -398,7 +398,7 @@ def _download_fixed_amount_of_data(response, temp_file, required_length): else: logger.debug('The average download speed has not dipped below the' - ' mimimum average download speed set in tuf.settings.py.') + ' minimum average download speed set in tuf.settings.py.') # We might have no more data to read. Check number of bytes downloaded. if not data: diff --git a/tuf/repository_lib.py b/tuf/repository_lib.py index c31ac23e..6e474eda 100755 --- a/tuf/repository_lib.py +++ b/tuf/repository_lib.py @@ -2131,7 +2131,7 @@ def create_tuf_client_directory(repository_directory, client_directory): # If the client's metadata directory does not already exist, create it and # any of its parent directories, otherwise raise an exception. An exception - # is raised to avoid accidently overwritting previous metadata. + # is raised to avoid accidentally overwritting previous metadata. try: os.makedirs(client_metadata_directory) diff --git a/tuf/scripts/repo.py b/tuf/scripts/repo.py index 6689a42b..12bb022d 100755 --- a/tuf/scripts/repo.py +++ b/tuf/scripts/repo.py @@ -112,7 +112,7 @@ in --role) to --delegatee role with specified . --delegatee: - Specify role that is targetted by delegator in --role to sign for + Specify role that is targeted by delegator in --role to sign for target files matching delegated or in revocation of trust. --terminating: