소스 검색

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