Skip to content

Commit

Permalink
Remove the unnecessary rename operation on the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Aug 9, 2024
1 parent d8e2c52 commit 4f724be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions add_to_pydotorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,6 @@ def has_sigstore_signature(filename: str) -> bool:
]
)

# New sigstore CLI makes Sigstore bundles end in '.json'
# but our users expect bundles to be '.sigstore'
if os.path.exists(bundle_file + ".json"):
os.rename(bundle_file + ".json", bundle_file)

run_cmd(["chmod", "644", sig_file])
run_cmd(["chmod", "644", cert_file])
run_cmd(["chmod", "644", bundle_file])

Check warning on line 367 in add_to_pydotorg.py

View check run for this annotation

Codecov / codecov/patch

add_to_pydotorg.py#L365-L367

Added lines #L365 - L367 were not covered by tests
Expand Down

0 comments on commit 4f724be

Please sign in to comment.