Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for downloading foo/bar/baz target files #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tuf-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1265,10 +1265,12 @@ non-volatile storage as FILENAME.EXT.
external program is used to compute the root hash of a tree of targets files,
and this program does not provide the total size of all of these files.) If
consistent snapshots are not used (see Section 7), then the filename used to
download the target file is of the fixed form FILENAME.EXT (e.g.,
foobar.tar.gz). Otherwise, the filename is of the form HASH.FILENAME.EXT
download the target file is of the fixed form PATH/TO/FILENAME.EXT (e.g.,
foobar.tar.gz or baz/foo/bar). Otherwise, the filename is of the form
PATH/TO/HASH.FILENAME.EXT
(e.g.,
c14aeb4ac9f4a8fc0d83d12482b9197452f6adf3eb710e3b1e2b79e8d14cb681.foobar.tar.gz),
c14aeb4ac9f4a8fc0d83d12482b9197452f6adf3eb710e3b1e2b79e8d14cb681.foobar.tar.gz
or foo/bar/c14aeb4ac9f4a8fc0d83d12482b9197452f6adf3eb710e3b1e2b79e8d14cb681.baz),
where HASH is one of the hashes of the targets file listed in the targets
metadata file found earlier in step 4. In either case, the client MUST write
the file to non-volatile storage as FILENAME.EXT.
Expand Down