archive_eol: Handle beta refs too and remove restriction on arches

This commit is contained in:
bbhtt
2024-09-20 09:43:53 +05:30
parent 5e109e4918
commit c86f3cfb2a
2 changed files with 7 additions and 5 deletions
+6 -5
View File
@@ -118,11 +118,12 @@ def main() -> None:
# 3-1.6, 3-18.08 is EOL
"org.videolan.VLC.Plugin.fdkaac",
}
# we need to get apps which are EOL on both supported arches
# as there are apps which are only EOL on one arch but maintained
# in another. This might miss some refs but LBYL!
stable = get_eol_refs("x86_64", "flathub") & get_eol_refs("aarch64", "flathub")
eols = list(stable - excludes)
stable = get_eol_refs("x86_64", "flathub") | get_eol_refs("aarch64", "flathub")
beta = get_eol_refs("x86_64", "flathub-beta") | get_eol_refs(
"aarch64", "flathub-beta"
)
eols = list((stable | beta) - excludes)
if not eols:
return
+1
View File
@@ -23,6 +23,7 @@ jobs:
- name: Set up Flathub remotes
run: |
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
- name: Run EOL script
run: python3 .github/scripts/archive_eol.py