瀏覽代碼

jellyfin - account for an extended versioning scheme (#2055)

Stavros Kois 1 年之前
父節點
當前提交
dc32674813
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      library/ix-dev/community/jellyfin/upgrade_strategy

+ 2 - 2
library/ix-dev/community/jellyfin/upgrade_strategy

@@ -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 {}