From f0bafa3eae86fdea2ef51d52980cabf5a3b48e1f Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Thu, 3 Dec 2020 16:34:14 +0100 Subject: [PATCH] [Ubuntu] Add MediaInfo package (#2188) See https://github.com/actions/virtual-environments/issues/2185 --- .../scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 1 + .../linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 | 5 +++++ images/linux/toolsets/toolset-1604.json | 1 + images/linux/toolsets/toolset-1804.json | 1 + images/linux/toolsets/toolset-2004.json | 1 + 5 files changed, 9 insertions(+) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index a5e71b1db..f2bf22736 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -102,6 +102,7 @@ $toolsList = @( (Get-KubectlVersion), (Get-KustomizeVersion), (Get-LeiningenVersion), + (Get-MediainfoVersion), (Get-M4Version), (Get-HGVersion), (Get-MinikubeVersion), diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index ba676b0a5..624e5167a 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -157,6 +157,11 @@ function Get-LeiningenVersion { return "$(lein -v | Take-OutputPart -Part 0,1)" } +function Get-MediainfoVersion { + $mediainfoVersion = (mediainfo --version | Select-Object -Index 1 | Take-OutputPart -Part 2).Replace('v', '') + return "MediaInfo $mediainfoVersion" +} + function Get-NewmanVersion { return "Newman $(newman --version)" } diff --git a/images/linux/toolsets/toolset-1604.json b/images/linux/toolsets/toolset-1604.json index c846b7251..93e4f3c2f 100644 --- a/images/linux/toolsets/toolset-1604.json +++ b/images/linux/toolsets/toolset-1604.json @@ -165,6 +165,7 @@ "ftp", "jq", "m4", + "mediainfo", "netcat", "parallel", "patchelf", diff --git a/images/linux/toolsets/toolset-1804.json b/images/linux/toolsets/toolset-1804.json index 0f1044081..ed97df81f 100644 --- a/images/linux/toolsets/toolset-1804.json +++ b/images/linux/toolsets/toolset-1804.json @@ -160,6 +160,7 @@ "ftp", "jq", "m4", + "mediainfo", "netcat", "parallel", "patchelf", diff --git a/images/linux/toolsets/toolset-2004.json b/images/linux/toolsets/toolset-2004.json index 809195422..9d6415cfe 100644 --- a/images/linux/toolsets/toolset-2004.json +++ b/images/linux/toolsets/toolset-2004.json @@ -134,6 +134,7 @@ "ftp", "jq", "m4", + "mediainfo", "netcat", "parallel", "patchelf",