Skip to content

Commit

Permalink
Fixing remove_old_releases.py script to handle an edge case (apache#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghrajesh authored Nov 29, 2023
1 parent 92cc2ff commit 4b75a88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/provider_packages/remove_old_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class VersionedFile(NamedTuple):
def split_version_and_suffix(file_name: str, suffix: str) -> VersionedFile:
no_suffix_file = file_name[: -len(suffix)]
no_version_file, version = no_suffix_file.rsplit("-", 1)
no_version_file = no_version_file.replace("_", "-")
return VersionedFile(
base=no_version_file + "-",
version=version,
Expand Down

0 comments on commit 4b75a88

Please sign in to comment.