mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
ci: use python3 to rewrite SigLevel in pacman.conf
sed -i with a ^SigLevel regex ran without error but had no effect -- pacman was still downloading and failing to verify .sig files, proving the SigLevel line was not actually replaced. Switch to python3 which reads and rewrites the entire file, matching any whitespace between SigLevel and = regardless of how the line is formatted in the installed pacman.conf on the AppVeyor image.
This commit is contained in:
parent
f5913295d0
commit
3dadf00424
1 changed files with 2 additions and 2 deletions
|
|
@ -39,10 +39,10 @@ install:
|
|||
- set PATH=c:\msys64\%MSYSTEM%\bin;c:\msys64\usr\bin;%PATH%
|
||||
- if defined MSVC call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC%
|
||||
- if defined MSVC pacman --noconfirm -Rsc mingw-w64-%CPU%-gcc gcc
|
||||
- bash -c "sed -i 's/^SigLevel.*/SigLevel = Never/' /etc/pacman.conf"
|
||||
- bash -c "python3 -c \"import re; f='/etc/pacman.conf'; open(f,'w').write(re.sub(r'SigLevel\s*=\s*\S.*', 'SigLevel = Never', open(f).read()))\""
|
||||
- pacman --noconfirm -Syuu
|
||||
- pacman --noconfirm -S msys2-keyring
|
||||
- bash -c "sed -i 's/^SigLevel = Never/SigLevel = Required DatabaseOptional/' /etc/pacman.conf"
|
||||
- bash -c "python3 -c \"import re; f='/etc/pacman.conf'; open(f,'w').write(re.sub(r'SigLevel\s*=\s*Never', 'SigLevel = Required DatabaseOptional', open(f).read()))\""
|
||||
- pacman --noconfirm -Syuu
|
||||
- pacman --noconfirm -S autoconf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue