Skip to content

Commit a65c84a

Browse files
committed
scoop-list: info +deprecated
1 parent f14c57d commit a65c84a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

libexec/scoop-list.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ param($query)
55

66
. "$PSScriptRoot\..\lib\versions.ps1" # 'Select-CurrentVersion'
77
. "$PSScriptRoot\..\lib\manifest.ps1" # 'parse_json' 'Select-CurrentVersion' (indirectly)
8+
. "$PSScriptRoot\..\lib\download.ps1" # 'Get-UserAgent'
89

9-
$def_arch = Get-DefaultArchitecture
10+
$defaultArchitecture = Get-DefaultArchitecture
1011
if (-not (Get-FormatData ScoopApps)) {
1112
Update-FormatData "$PSScriptRoot\..\supporting\formats\ScoopTypes.Format.ps1xml"
1213
}
@@ -47,10 +48,11 @@ $apps | Where-Object { !$query -or ($_.name -match $query) } | ForEach-Object {
4748
$item.Updated = $updated
4849

4950
$info = @()
51+
if ((app_status $app $global).deprecated) { $info += 'Deprecated package'}
5052
if ($global) { $info += 'Global install' }
5153
if (failed $app $global) { $info += 'Install failed' }
5254
if ($install_info.hold) { $info += 'Held package' }
53-
if ($install_info.architecture -and $def_arch -ne $install_info.architecture) {
55+
if ($install_info.architecture -and $defaultArchitecture -ne $install_info.architecture) {
5456
$info += $install_info.architecture
5557
}
5658
$item.Info = $info -join ', '

0 commit comments

Comments
 (0)