Skip to content

Commit 1986b5d

Browse files
committed
Add remaining update warnings
1 parent 8929cbf commit 1986b5d

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

etc/scripts/get-stack.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ do_ubuntu_install() {
156156
do_debian_install() {
157157

158158
install_dependencies() {
159-
apt_install_dependencies g++ gcc libc6-dev libffi-dev libgmp-dev make xz-utils zlib1g-dev
159+
if ! apt_install_dependencies g++ gcc libc6-dev libffi-dev libgmp-dev make xz-utils zlib1g-dev; then
160+
die "Dependencies could not be installed. Please run 'apt-get update' and try again."
161+
fi
160162
}
161163

162164
if is_arm ; then
@@ -180,7 +182,9 @@ do_debian_install() {
180182
# and install the necessary dependencies explicitly.
181183
do_fedora_install() {
182184
install_dependencies() {
183-
dnf_install_pkgs perl make automake gcc gmp-devel libffi zlib xz tar
185+
if ! dnf_install_pkgs perl make automake gcc gmp-devel libffi zlib xz tar; then
186+
die "Dependencies could not be installed. Please run 'dnf check-update' and try again."
187+
fi
184188
}
185189

186190
if is_64_bit ; then
@@ -200,7 +204,9 @@ do_fedora_install() {
200204
# and install the necessary dependencies explicitly.
201205
do_centos_install() {
202206
install_dependencies() {
203-
yum_install_pkgs perl make automake gcc gmp-devel libffi zlib xz tar
207+
if ! yum_install_pkgs perl make automake gcc gmp-devel libffi zlib xz tar; then
208+
die "Dependencies could not be installed. Please run 'yum check-update' and try again."
209+
fi
204210
}
205211

206212
if is_64_bit ; then
@@ -238,7 +244,9 @@ do_osx_install() {
238244
# 'pkg install' and then downloads bindist.
239245
do_freebsd_install() {
240246
install_dependencies() {
241-
sudocmd pkg install -y devel/gmake perl5 lang/gcc misc/compat8x misc/compat9x converters/libiconv ca_root_nss
247+
if ! sudocmd pkg install -y devel/gmake perl5 lang/gcc misc/compat8x misc/compat9x converters/libiconv ca_root_nss; then
248+
die "Dependencies could not be installed. Please run 'pkg update' and try again."
249+
fi
242250
}
243251
if is_64_bit ; then
244252
install_dependencies
@@ -251,7 +259,9 @@ do_freebsd_install() {
251259
# Alpine distro install
252260
do_alpine_install() {
253261
install_dependencies() {
254-
apk_install_pkgs gmp libgcc xz make
262+
if ! apk_install_pkgs gmp libgcc xz make; then
263+
die "Dependencies could not be installed. Please run 'apk update' and try again."
264+
fi
255265
}
256266
install_dependencies
257267
if is_64_bit ; then

0 commit comments

Comments
 (0)