Accepting request 1136308 from home:dopice:branches:devel:microos:kalpa

Changed the online check from using ping to cURL. Since Flatpak uses https to download the packages, I believe the online check should use the same method. I discovered this when installing a new computer in a network which have restricted outbouond ICMP.

OBS-URL: https://build.opensuse.org/request/show/1136308
OBS-URL: https://build.opensuse.org/package/show/devel:microos:kalpa/plasma-branding-Kalpa?expand=0&rev=9
This commit is contained in:
Shawn Dunn 2024-01-06 01:47:05 +00:00 committed by Git OBS Bridge
parent 92ab23fe78
commit 93ac89bcee
3 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@ run_task() {
fi
}
run_task 1 "Waiting for Internet connection" 'until /usr/bin/ping -q -c 1 flathub.org; do sleep 1; done'
run_task 1 "Waiting for Internet connection" 'until /usr/bin/curl -s --max-time 5 https://flathub.org > /dev/null; do sleep 1; done'
run_task 2 "Adding Flathub Repository" /usr/bin/flatpak remote-add --user --if-not-exists flathub /usr/share/kalpa/flathub.flatpakrepo
run_task 3 "Installing Firefox" /usr/bin/flatpak install --user --noninteractive flathub org.mozilla.firefox
run_task 4 "Installing KCalc" /usr/bin/flatpak install --user --noninteractive flathub org.kde.kcalc

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 2 22:28:11 UTC 2024 - dopice <0xdopice@protonmail.com>
- Use cURL instead of ping for online check
-------------------------------------------------------------------
Wed Dec 27 18:50:53 UTC 2023 - Shawn Dunn <sfalken@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package plasma-branding-Kalpa
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2021 SUSE Software Solutions GmbH
#
# All modifications and additions to the file contributed by third parties