From 8dc37bf0f0cf69f90472ba508156dad942570fee Mon Sep 17 00:00:00 2001 From: Jeremy Szu Date: Wed, 26 Jul 2023 14:49:10 +0800 Subject: [PATCH] [p/b/b/check-ubuntu-desktop-recommends.sh] Check the installed package instead of from ubuntu-archive (LP: #2027655) --- providers/base/bin/check-ubuntu-desktop-recommends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/bin/check-ubuntu-desktop-recommends.sh b/providers/base/bin/check-ubuntu-desktop-recommends.sh index edda52e49..9913880f2 100755 --- a/providers/base/bin/check-ubuntu-desktop-recommends.sh +++ b/providers/base/bin/check-ubuntu-desktop-recommends.sh @@ -9,7 +9,7 @@ while read -r pkg; do if ! dpkg-query -W -f='${Status}\n' "$pkg" 2>&1 | grep "install ok installed" >/dev/null 2>&1 && [ "$pkg" != "libreoffice-ogltrans" ]; then noninstalled+=("$pkg") fi -done < <(apt-cache show ubuntu-desktop | grep ^Recommends | head -n 1 | cut -d : -f 2- | xargs | sed 's/ //g' | tr , $'\n') +done < <(apt-cache show ubuntu-desktop="$(dpkg-query --showformat='${Version}' --show ubuntu-desktop)" | grep ^Recommends | head -n 1 | cut -d : -f 2- | xargs | sed 's/ //g' | tr , $'\n') if [ -n "${noninstalled[*]}" ]; then IFS=' '