[ubuntu] include apt vital pkgs in software report (#7845)

This commit is contained in:
David Dauer
2023-07-12 17:41:56 +02:00
committed by GitHub
parent 38e96ca31a
commit ad3c78a4fc

View File

@@ -322,7 +322,7 @@ function Get-CachedDockerImagesTableData {
function Get-AptPackages {
$apt = (Get-ToolsetContent).Apt
$output = @()
ForEach ($pkg in ($apt.common_packages + $apt.cmd_packages)) {
ForEach ($pkg in ($apt.vital_packages + $apt.common_packages + $apt.cmd_packages)) {
$version = $(dpkg-query -W -f '${Version}' $pkg)
if ($Null -eq $version) {
$version = $(dpkg-query -W -f '${Version}' "$pkg*")