mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove obsolete 'interposition' from docs
The interposition sub-package was removed in #537. This commits removes obsolete mentions of 'interposition' from code comments and documentation. Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
This commit is contained in:
parent
b33ac56f71
commit
5d2898a13c
3 changed files with 6 additions and 10 deletions
|
|
@ -153,6 +153,6 @@
|
|||
shutil.copytree(staged_metadata_directory, metadata_directory)
|
||||
|
||||
# Create the client files (required directory structure and minimal metadata)
|
||||
# required by the 'tuf.interposition' and 'tuf.client.updater.py' updaters.
|
||||
# as expected by 'tuf.client.updater'.
|
||||
if not options.dry_run:
|
||||
create_tuf_client_directory('repository', os.path.join('client', 'test_repository1'))
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ and set the repository mirror information.
|
|||
The **tuf.repository_tool** module can be used to create a TUF repository. See
|
||||
[tuf/README](../README.md) for more information on creating TUF repositories.
|
||||
|
||||
The **tuf.interposition** package can also assist in integrating TUF with a
|
||||
software updater. See [tuf/interposition/README](../interposition/README.md)
|
||||
for more information on interposing Python urllib calls with TUF.
|
||||
|
||||
|
||||
## Overview of the Update Process
|
||||
|
||||
|
|
|
|||
|
|
@ -2086,9 +2086,9 @@ def _log_status(rolename, signable, repository_name):
|
|||
def create_tuf_client_directory(repository_directory, client_directory):
|
||||
"""
|
||||
<Purpose>
|
||||
Create a client directory structure that the 'tuf.interposition' package
|
||||
and 'tuf.client.updater' module expect of clients. Metadata files
|
||||
downloaded from a remote TUF repository are saved to 'client_directory'.
|
||||
Create client directory structure as 'tuf.client.updater' expects it.
|
||||
Metadata files downloaded from a remote TUF repository are saved to
|
||||
'client_directory'.
|
||||
The Root file must initially exist before an update request can be
|
||||
satisfied. create_tuf_client_directory() ensures the minimum metadata
|
||||
is copied and that required directories ('previous' and 'current') are
|
||||
|
|
@ -2164,8 +2164,8 @@ def create_tuf_client_directory(repository_directory, client_directory):
|
|||
|
||||
# Move all metadata to the client's 'current' and 'previous' directories.
|
||||
# The root metadata file MUST exist in '{client_metadata_directory}/current'.
|
||||
# 'tuf.interposition' and 'tuf.client.updater.py' expect the 'current' and
|
||||
# 'previous' directories to exist under 'metadata'.
|
||||
# 'tuf.client.updater' expects the 'current' and 'previous' directories to
|
||||
# exist under 'metadata'.
|
||||
client_current = os.path.join(client_metadata_directory, 'current')
|
||||
client_previous = os.path.join(client_metadata_directory, 'previous')
|
||||
shutil.copytree(metadata_directory, client_current)
|
||||
|
|
|
|||
Loading…
Reference in a new issue