Convert action to APT version syntax.
This commit is contained in:
parent
a644619d1f
commit
bd5455834e
1 changed files with 2 additions and 0 deletions
2
lib.sh
2
lib.sh
|
@ -132,6 +132,8 @@ function normalize_package_list {
|
|||
echo "${stripped}" \
|
||||
| sed 's/\s\+/ /g; s/^\s\+//g; s/\s\+$//g')"
|
||||
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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue