소스 검색

Fix pacman cache dir missing. Fixes #2068

Stefan Profanter 6 년 전
부모
커밋
2857d31f86
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tools/appveyor/install.ps1

+ 3 - 0
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