From 643cb3916cc72d02f6d5954f80f65a7366ebe13f Mon Sep 17 00:00:00 2001 From: Guangming Wang Date: Thu, 15 Aug 2019 21:55:33 +0800 Subject: [PATCH] cleanup: fix docs words in repository_tool.py Signed-off-by: Guangming Wang --- tuf/repository_tool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tuf/repository_tool.py b/tuf/repository_tool.py index 9f5a4158..887247f1 100755 --- a/tuf/repository_tool.py +++ b/tuf/repository_tool.py @@ -1164,7 +1164,7 @@ def threshold(self, threshold): threshold: - An integer value that sets the role's threshold value, or the miminum + An integer value that sets the role's threshold value, or the minimum number of signatures needed for metadata to be considered fully signed. Conformant to 'securesystemslib.formats.THRESHOLD_SCHEMA'. @@ -2169,7 +2169,7 @@ def delegate(self, rolename, public_keys, paths, threshold=1, has not yet specified) in other delegations. If 'terminating' is True and 'updater.target()' does not find 'example_target.tar.gz' in this role, a 'securesystemslib.exceptions.UnknownTargetError' exception - should be raised. If 'terminatin' is False (default), and + should be raised. If 'terminating' is False (default), and 'target/other_role' is also trusted with 'example_target.tar.gz' and has listed it, updater.target() should backtrack and return the target file specified by 'target/other_role'. @@ -2391,7 +2391,7 @@ def delegate_hashed_bins(self, list_of_targets, keys_of_hashed_bins, Distribute a large number of target files over multiple delegated roles (hashed bins). The metadata files of delegated roles will be nearly equal in size (i.e., 'list_of_targets' is uniformly distributed by - calculating the target filepath's hash and determing which bin it should + calculating the target filepath's hash and determining which bin it should reside in. The updater client will use "lazy bin walk" to find a target file's hashed bin destination. The parent role lists a range of path hash prefixes each hashed bin contains. This method is intended for @@ -3051,7 +3051,7 @@ def dump_signable_metadata(metadata_filepath): Dump the "signed" portion of metadata. It is the portion that is normally signed by the repository tool, which is in canonicalized JSON form. - This function is intented for external tools that wish to independently + This function is intended for external tools that wish to independently sign metadata. The normal workflow for this use case is to: