From bd5455834e813eff43a50c60e09b7dd661a0db80 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Mon, 13 Mar 2023 21:43:46 -0700 Subject: [PATCH] Convert action to APT version syntax. --- lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib.sh b/lib.sh index aded419..6f85fe7 100755 --- a/lib.sh +++ b/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. =). + local versioned="$(echo $sorted | sed 's/:/=/g')" echo "${sorted}" }