From 4b75a8813989e2fa34583e4293839c0fc9d615a2 Mon Sep 17 00:00:00 2001 From: Amogh Desai Date: Wed, 29 Nov 2023 15:18:00 +0530 Subject: [PATCH] Fixing remove_old_releases.py script to handle an edge case (#35942) --- dev/provider_packages/remove_old_releases.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/provider_packages/remove_old_releases.py b/dev/provider_packages/remove_old_releases.py index 0d3c8d52bd67b..33ee56a751c05 100644 --- a/dev/provider_packages/remove_old_releases.py +++ b/dev/provider_packages/remove_old_releases.py @@ -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,