Skip to content

Commit bdf94f6

Browse files
committed
[skip travis] Avoid re-installing up-to-date pacman packages
1 parent c4652d6 commit bdf94f6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.appveyor.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ install:
3535
- bash -lc "pacman --version"
3636
- bash -lc "pacman -Q"
3737
# Switch from SF to msys2.org (default, much faster)
38-
- bash -lc "pacman --noconfirm --sync pacman-mirrors"
39-
- bash -lc "pacman --noconfirm -S autoconf automake bison flex"
40-
#- bash -lc "pacman --noconfirm -S mingw-w64-$MARCH-qt4"
38+
- bash -lc "pacman --noconfirm --needed --sync pacman-mirrors"
39+
- bash -lc "pacman --noconfirm --needed -S autoconf automake bison flex"
40+
#- bash -lc "pacman --noconfirm --needed -S mingw-w64-$MARCH-qt4"
4141
# Qt4 was removed from MSYS2, see
4242
# https://github.com/msys2/MINGW-packages/issues/3881
4343
# and https://github.com/slowphil/texmacs-win-builder/issues/3 for the "fix"
@@ -48,8 +48,10 @@ install:
4848
# https://wiki.archlinux.org/index.php/offline_installation_of_packages
4949
#
5050
# download package directly into the local pacman packages directory, cached by AppVeyor
51+
# make sure pacman packages directory exists (may not be there if no packages downloaded yet)
52+
- bash -lc "mkdir -p /var/cache/pacman/pkg"
5153
# use "no-clobber" option for wget since the file could/should already be in the cache
52-
- bash -lc "cd /var/cache/pacman/pkg && wget -nc http://repo.msys2.org/mingw/$MARCH/mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz && pacman --noconfirm -U mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz"
54+
- bash -lc "cd /var/cache/pacman/pkg && wget -nc http://repo.msys2.org/mingw/$MARCH/mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz && pacman --noconfirm --needed -U mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz"
5355

5456
# Set compiler (64bit)
5557
- set "CC=/c/msys64/mingw%MBITS%/bin/gcc.exe"

0 commit comments

Comments
 (0)