mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
jellyfin - account for an extended versioning scheme (#2055)
This commit is contained in:
@@ -6,12 +6,12 @@ import sys
|
||||
from catalog_update.upgrade_strategy import semantic_versioning
|
||||
|
||||
|
||||
RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+')
|
||||
RE_STABLE_VERSION = re.compile(r'\d+\.\d+\.\d+(-\d+)?')
|
||||
|
||||
|
||||
def newer_mapping(image_tags):
|
||||
key = list(image_tags.keys())[0]
|
||||
tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||
tags = {t.replace("-", "."): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||
version = semantic_versioning(list(tags))
|
||||
if not version:
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user