From 58f9a7be56ab689e6889db1fa6460040c0d420ca Mon Sep 17 00:00:00 2001 From: Stefan Profanter Date: Tue, 18 Sep 2018 13:33:10 +0200 Subject: [PATCH] Fix pacman cache dir missing. Fixes #2068 --- tools/appveyor/install.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/appveyor/install.ps1 b/tools/appveyor/install.ps1 index a461f874baa..63d2a2380ce 100644 --- a/tools/appveyor/install.ps1 +++ b/tools/appveyor/install.ps1 @@ -32,6 +32,9 @@ try { Write-Host -ForegroundColor Green "`n### Installing mbedtls ###`n" if ($env:CC_SHORTNAME -eq "mingw") { + # pacman may complain that the directory does not exist, thus create it. + # See https://github.com/open62541/open62541/issues/2068 + & C:\msys64\usr\bin\mkdir -p /var/cache/pacman/pkg & C:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-mbedtls } elseif ($env:CC_SHORTNAME -eq "vs2015") { # we need the static version, since open62541 is built with /MT