]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
CI: Azure: Rework how we update MSYS2
authorTom Rini <trini@konsulko.com>
Tue, 3 May 2022 12:30:14 +0000 (08:30 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 12:32:50 +0000 (08:32 -0400)
Based on reading https://www.msys2.org/docs/ci/ and "Other Systems"
rework how we update MSYS2 to the current version.  We run it once, to
perform nothing other than being the first run, then we run pacman
twice.

Signed-off-by: Tom Rini <trini@konsulko.com>
.azure-pipelines.yml

index 4e5c4b785a76f9c7348db70941546fcfc1660373..ad540ea63536ed6f0e83edf8f41f35b8ce8fc66b 100644 (file)
@@ -22,8 +22,9 @@ stages:
         displayName: 'Install MSYS2'
       - script: |
           sfx.exe -y -o%CD:~0,2%\
-          %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syyuu"
-          %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Su"
+          %CD:~0,2%\msys64\usr\bin\bash -lc " "
+          %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
+          %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
         displayName: 'Update MSYS2'
       - script: |
           %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm --needed -Sy make gcc bison flex diffutils openssl-devel libgnutls-devel libutil-linux-devel"