mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
List only target paths containing forward slashes in metadata
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
parent
ff183fc053
commit
5dfb02cbd5
1 changed files with 1 additions and 1 deletions
|
|
@ -1397,7 +1397,7 @@ def generate_targets_metadata(targets_directory, target_files, version,
|
|||
if len(custom):
|
||||
custom_data = custom
|
||||
|
||||
filedict[relative_targetpath] = \
|
||||
filedict[relative_targetpath.replace('\\', '/').lstrip('/')] = \
|
||||
get_metadata_fileinfo(target_path, custom_data)
|
||||
|
||||
# Copy 'target_path' to 'digest_target' if consistent hashing is enabled.
|
||||
|
|
|
|||
Loading…
Reference in a new issue