Skip to content

Commit 5794879

Browse files
committed
Merge branch 'sdk-installer'
This topic branch brings several enhancements to the SDK installer, triggered by a recent breakage due to upstream changes that require us to manually (re-)initialize pacman's keyring before proceeding. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 3455521 + e071e67 commit 5794879

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

sdk-installer/release.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ dlls_for_exes () {
7070
echo "$dlls"
7171
}
7272

73-
fileList="etc/pacman.conf \
73+
fileList="etc/nsswitch.conf \
74+
etc/pacman.conf \
7475
etc/pacman.d \
76+
usr/bin/pacman-key \
77+
usr/bin/tput.exe \
7578
usr/bin/pacman.exe \
7679
usr/bin/curl.exe \
7780
usr/bin/gpg.exe \

sdk-installer/setup-git-sdk.bat

+35-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,39 @@
7171

7272
@IF ERRORLEVEL 1 GOTO INSTALL_RUNTIME
7373

74+
@SET /A counter=0
75+
:INSTALL_BASH
76+
@SET /A counter+=1
77+
@IF %counter% GEQ 5 @(
78+
@ECHO Could not install bash
79+
@PAUSE
80+
@EXIT 1
81+
)
82+
83+
@REM next, force update bash
84+
@"%cwd%"\usr\bin\pacman -S --needed --force --noconfirm bash
85+
86+
@SET /A counter=0
87+
:INSTALL_INFO
88+
@SET /A counter+=1
89+
@IF %counter% GEQ 5 @(
90+
@ECHO Could not install info
91+
@PAUSE
92+
@EXIT 1
93+
)
94+
95+
@REM we need a /tmp directory, just for the time being
96+
@MKDIR "%cwd%"\tmp
97+
98+
@REM next, initialize pacman's keyring
99+
@"%cwd%"\usr\bin\bash.exe -l -c '/usr/bin/bash /usr/bin/pacman-key --init'
100+
@IF ERRORLEVEL 1 PAUSE
101+
102+
@REM next, force update info
103+
@"%cwd%"\usr\bin\pacman -S --needed --force --noconfirm info
104+
105+
@IF ERRORLEVEL 1 GOTO INSTALL_INFO
106+
74107
@SET /A counter=0
75108
:INSTALL_PACMAN
76109
@SET /A counter+=1
@@ -80,8 +113,8 @@
80113
@EXIT 1
81114
)
82115

83-
@REM next, force update pacman, but first we need bash and info for that.
84-
@"%cwd%"\usr\bin\pacman -S --needed --force --noconfirm bash info pacman
116+
@REM next, force update pacman
117+
@"%cwd%"\usr\bin\pacman -S --needed --force --noconfirm pacman
85118

86119
@IF ERRORLEVEL 1 GOTO INSTALL_PACMAN
87120

0 commit comments

Comments
 (0)