Skip to content

Commit

Permalink
[p/b/b/check-ubuntu-desktop-recommends.sh] Check the installed packag…
Browse files Browse the repository at this point in the history
…e instead of from ubuntu-archive (LP: #2027655)
  • Loading branch information
Jeremy Szu committed Jul 26, 2023
1 parent 0abe030 commit 8dc37bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/bin/check-ubuntu-desktop-recommends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=' '
Expand Down

0 comments on commit 8dc37bf

Please sign in to comment.