forked from theupdateframework/python-tuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Way to disable hash prefix for consistent_snapshot
Currently, if the repository is consistent_snapshot, Updater will prefix the target filename with the hash when constructing the download URL. For some adopters of TUF (like Warehouse) this is not wanted (warehouse target file paths are "consistent", even if the filenames are not). For example, Warehouse doesn't follow what tuf (the reference implementation and specification) advice for naming consistent filenames, which is to prefix the filename with the hash of the files contents. However, the target filenames it does use are consistent, only the hash is part of the target's file path not the target's file name. Signed-off-by: Martin Vrachev <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters