From bf34e152eb6c0638331f1ebe11b501a95db528e5 Mon Sep 17 00:00:00 2001 From: Maurice Kevenaar Date: Mon, 5 Feb 2024 13:44:30 +0100 Subject: [PATCH] (maint) remove old cinst and cup commands --- .appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 7842ac1c87e..9d187b54403 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -64,9 +64,9 @@ install: 'autohotkey.install' = '1.1.35.00' 'chocolatey-community-validation.extension' = '0.1.0' }.GetEnumerator() | % { - if (!(Test-Path "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg")) { rm "${env:nupkg_cache_path}\$($_.Key).*.nupkg" ; iwr "https://chocolatey.org/api/v2/package/$($_.Key)/$($_.Value)" -OutFile "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg" } - if ($_.Key -eq 'chocolatey') { cup $_.Key --version $_.Value --source ${env:nupkg_cache_path} --allow-downgrade --pre } - else { cinst $_.Key --version $_.Value --source ${env:nupkg_cache_path} --ignore-dependencies } + if (!(Test-Path "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg")) { rm "${env:nupkg_cache_path}\$($_.Key).*.nupkg" ; Invoke-WebRequest "https://chocolatey.org/api/v2/package/$($_.Key)/$($_.Value)" -OutFile "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg" } + if ($_.Key -eq 'chocolatey') { choco upgrade $_.Key --version $_.Value --source ${env:nupkg_cache_path} --allow-downgrade --pre } + else { choco install $_.Key --version $_.Value --source ${env:nupkg_cache_path} --ignore-dependencies } } rm "$env:ChocolateyInstall\logs\*.log" - ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'