chore: skip relup on ubuntu22.04 for earlier versions

This commit is contained in:
Ivan Dyachkov 2023-01-25 15:26:25 +01:00
parent 91903ef869
commit 87cd40acca
2 changed files with 13 additions and 0 deletions

8
build
View File

@ -205,6 +205,14 @@ make_zip() {
;;
esac
;;
ubuntu22)
case "$PKG_VSN" in
4.4.15*)
# this is the first version for amzn2, no relup
has_relup='no'
;;
esac
;;
macos*)
case "$PKG_VSN" in
4.4.12*)

View File

@ -176,6 +176,11 @@ filter_froms(Froms0, AvailableVersionsIndex) ->
{"amzn2", _} ->
Excluded = [list_to_binary(["4.4.", integer_to_list(X)]) || X <- lists:seq(0,11)],
lists:filter(fun(Vsn) -> not lists:member(Vsn, Excluded) end, Froms0);
%% ubuntu22.04 is introduced since v4.4.15 and e4.4.15
%% exclude tags before them
{"ubuntu22.04", _} ->
Excluded = [list_to_binary(["4.4.", integer_to_list(X)]) || X <- lists:seq(0,14)],
lists:filter(fun(Vsn) -> not lists:member(Vsn, Excluded) end, Froms0);
%% macos arm64 (M1/M2) packages are introduced since v4.4.12 and e4.4.12
%% exclude tags before them
{"macos" ++ _, "aarch64" ++ _} ->