From 9bfb735a1f0e8853f43ffb0e9ad794f58de22083 Mon Sep 17 00:00:00 2001 From: Ryan S <1808452+swensorm@users.noreply.github.com> Date: Tue, 27 Aug 2024 05:43:15 -0500 Subject: [PATCH] tdarr: fix versions containing `5` (#2757) Not knowing python I left in the `.strip(STRIP_TEXT)` thinking it operated like replace while in fact it's more like a regex removal. Tdarr has not used the _ffmpeg5 suffix in about a year so just removing it from the upgrade_strategy to fix. --- library/ix-dev/community/tdarr/Chart.yaml | 2 +- library/ix-dev/community/tdarr/upgrade_strategy | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/library/ix-dev/community/tdarr/Chart.yaml b/library/ix-dev/community/tdarr/Chart.yaml index 19305c17db..46bc89d1a9 100644 --- a/library/ix-dev/community/tdarr/Chart.yaml +++ b/library/ix-dev/community/tdarr/Chart.yaml @@ -3,7 +3,7 @@ description: Tdarr is a Distributed Transcoding System annotations: title: Tdarr type: application -version: 1.2.11 +version: 1.2.12 apiVersion: v2 appVersion: 2.24.4 kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/community/tdarr/upgrade_strategy b/library/ix-dev/community/tdarr/upgrade_strategy index 798b8ab925..ba6c90d18a 100755 --- a/library/ix-dev/community/tdarr/upgrade_strategy +++ b/library/ix-dev/community/tdarr/upgrade_strategy @@ -7,15 +7,14 @@ from catalog_update.upgrade_strategy import semantic_versioning # Drop _ffmpeg5 after Cobia is released for a while -RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(_ffmpeg5)?') +RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?') RE_CLEAN_VERSION = re.compile(r'0+([1-9])') -STRIP_TEXT = '_ffmpeg5' def newer_mapping(image_tags): key = list(image_tags.keys())[0] tags = { - RE_CLEAN_VERSION.sub('\\1', t.strip(STRIP_TEXT)): t + RE_CLEAN_VERSION.sub('\\1', t): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t) }