Skip to content

Commit 4096d75

Browse files
committed
Downgrade Chocolatey version
1 parent 6e1692e commit 4096d75

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

appveyor.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ init:
2525

2626
install:
2727
- IF EXIST c:\tools\php (SET PHP=0)
28+
- ps: Set-Service wuauserv -StartupType Manual
29+
# In order to be able to list all the avialable PHP packages we have to
30+
# downgrade Chocolatey to version 0.10.13.
31+
# See https://github.com/chocolatey/choco/issues/1843
32+
- ps: choco install chocolatey -y --version 0.10.13 --allow-downgrade --force
2833
- ps: choco search php --exact --all-versions -r
2934
- ps: echo ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
30-
- ps: appveyor-retry cinst php --params '""/InstallDir:c:\tools\php""' --ignore-checksums -y --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
35+
- ps: appveyor-retry cinst php --params '""/InstallDir:c:\tools\php""' --ignore-checksums -y --force --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
3136
- cd c:\tools\php
3237
- IF %PHP%==1 copy php.ini-production php.ini /Y
3338
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini

0 commit comments

Comments
 (0)