mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Address issue #244.
Fix issue where hash algorithm name is prepended to the consistent snapshot filename. The actual hash value should be prepended instead.
This commit is contained in:
parent
08b2a68d6c
commit
38005fe2ab
1 changed files with 1 additions and 1 deletions
|
|
@ -1502,7 +1502,7 @@ def generate_targets_metadata(targets_directory, target_files, version,
|
|||
|
||||
# Create hard links for 'target_path' if consistent hashing is enabled.
|
||||
if write_consistent_targets:
|
||||
for target_digest in filedict[relative_targetpath]['hashes']:
|
||||
for target_digest in six.itervalues(filedict[relative_targetpath]['hashes']):
|
||||
dirname, basename = os.path.split(target_path)
|
||||
digest_filename = target_digest + '.' + basename
|
||||
digest_target = os.path.join(dirname, digest_filename)
|
||||
|
|
|
|||
Loading…
Reference in a new issue