Convert action to APT version syntax.

This commit is contained in:
awalsh128 2023-03-13 21:43:46 -07:00
parent a644619d1f
commit bd5455834e

2
lib.sh
View file

@ -132,6 +132,8 @@ function normalize_package_list {
echo "${stripped}" \ echo "${stripped}" \
| sed 's/\s\+/ /g; s/^\s\+//g; s/\s\+$//g')" | sed 's/\s\+/ /g; s/^\s\+//g; s/\s\+$//g')"
local sorted="$(echo ${trimmed} | tr ' ' '\n' | sort | tr '\n' ' ')" local sorted="$(echo ${trimmed} | tr ' ' '\n' | sort | tr '\n' ' ')"
# Convert colon delimited package version pairs to APT syntax (i.e. <pkg>=<ver>).
local versioned="$(echo $sorted | sed 's/:/=/g')"
echo "${sorted}" echo "${sorted}"
} }