mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-19 08:21:44 +00:00
[ubuntu] include apt vital pkgs in software report (#7845)
This commit is contained in:
@@ -322,7 +322,7 @@ function Get-CachedDockerImagesTableData {
|
|||||||
function Get-AptPackages {
|
function Get-AptPackages {
|
||||||
$apt = (Get-ToolsetContent).Apt
|
$apt = (Get-ToolsetContent).Apt
|
||||||
$output = @()
|
$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)
|
$version = $(dpkg-query -W -f '${Version}' $pkg)
|
||||||
if ($Null -eq $version) {
|
if ($Null -eq $version) {
|
||||||
$version = $(dpkg-query -W -f '${Version}' "$pkg*")
|
$version = $(dpkg-query -W -f '${Version}' "$pkg*")
|
||||||
|
|||||||
Reference in New Issue
Block a user