Skip to content

Commit

Permalink
remove addition of snapshot meta in timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored and trishankatdatadog committed Aug 26, 2022
1 parent bea4318 commit 674204e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions client/python_interop/testdata/python-tuf-v1.0.0/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ def make_test_repo(repo_dir: Path, consistent_snapshot: bool):
filename = f"{name}.json"
role.to_file(str(metadata_dir / filename), serializer=PRETTY)

if name == "snapshot":
# Stick info from written snapshot file in timestamp snapshot_meta
# TODO: shouldn't this happen less manually?
info = TargetFile.from_file("foo", str(metadata_dir / filename))
timestamp_metadata = roles["timestamp"].signed
timestamp_metadata.snapshot_meta.length = info.length
timestamp_metadata.snapshot_meta.hashes = info.hashes


def main():
parser = optparse.OptionParser()
Expand Down

0 comments on commit 674204e

Please sign in to comment.