@@ -561,6 +561,8 @@ def update(
561
561
hashes : Optional [Mapping [str , Any ]] = None ,
562
562
) -> None :
563
563
"""Assigns passed info about snapshot metadata to meta dict. """
564
+ # TODO: Consider renaming this function:
565
+ # see: https://github.com/theupdateframework/tuf/issues/1230
564
566
self .meta ["snapshot.json" ] = MetadataInfo (version , length , hashes )
565
567
566
568
@@ -619,6 +621,8 @@ def update(
619
621
hashes : Optional [Mapping [str , Any ]] = None ,
620
622
) -> None :
621
623
"""Assigns passed (delegated) targets role info to meta dict. """
624
+ # TODO: Consider renaming this function:
625
+ # see: https://github.com/theupdateframework/tuf/issues/1230
622
626
metadata_fn = f"{ rolename } .json"
623
627
self .meta [metadata_fn ] = MetadataInfo (version , length , hashes )
624
628
@@ -769,6 +773,8 @@ def to_dict(self) -> Dict[str, Any]:
769
773
# Modification.
770
774
def update (self , filename : str , fileinfo : Mapping [str , Any ]) -> None :
771
775
"""Assigns passed target file info to meta dict. """
776
+ # TODO: Consider renaming this function:
777
+ # see: https://github.com/theupdateframework/tuf/issues/1230
772
778
self .targets [filename ] = TargetInfo (
773
779
fileinfo ["length" ], fileinfo ["hashes" ], fileinfo .get ("custom" )
774
780
)
0 commit comments