fix(default-flatpaks): Checking flatpak IDs from FlatHub (#385)
For some reason, `curl` started to specifically fail for `com.obsproject.Studio` flatpak ID, which obviously exists. I thought it's because of Flathub downtime at the moment, but it's not & is consistently reproducible. Maybe it's a bug introduced with `curl` or something similar, so to solve this issue, `wget --spider` will be used instead.
This commit is contained in:
parent
be0201ce76
commit
b592ededde
1 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ check_flatpak_id_validity_from_flathub () {
|
||||||
echo "Safe-checking if ${INSTALL_LEVEL} flatpak IDs are typed correctly. If test fails, build also fails"
|
echo "Safe-checking if ${INSTALL_LEVEL} flatpak IDs are typed correctly. If test fails, build also fails"
|
||||||
if [[ ${#INSTALL[@]} -gt 0 ]]; then
|
if [[ ${#INSTALL[@]} -gt 0 ]]; then
|
||||||
for id in "${INSTALL[@]}"; do
|
for id in "${INSTALL[@]}"; do
|
||||||
if ! curl --output /dev/null --silent --head --fail "${URL}/${id}"; then
|
if ! wget --spider "${URL}/${id}" >/dev/null 2>&1; then
|
||||||
echo "ERROR: This ${INSTALL_LEVEL} install flatpak ID '${id}' doesn't exist in FlatHub repo, please check if you typed it correctly in the recipe."
|
echo "ERROR: This ${INSTALL_LEVEL} install flatpak ID '${id}' doesn't exist in FlatHub repo, please check if you typed it correctly in the recipe."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -134,7 +134,7 @@ check_flatpak_id_validity_from_flathub () {
|
||||||
fi
|
fi
|
||||||
if [[ ${#REMOVE[@]} -gt 0 ]]; then
|
if [[ ${#REMOVE[@]} -gt 0 ]]; then
|
||||||
for id in "${REMOVE[@]}"; do
|
for id in "${REMOVE[@]}"; do
|
||||||
if ! curl --output /dev/null --silent --head --fail "${URL}/${id}"; then
|
if ! wget --spider "${URL}/${id}" >/dev/null 2>&1; then
|
||||||
echo "ERROR: This ${INSTALL_LEVEL} removal flatpak ID '${id}' doesn't exist in FlatHub repo, please check if you typed it correctly in the recipe."
|
echo "ERROR: This ${INSTALL_LEVEL} removal flatpak ID '${id}' doesn't exist in FlatHub repo, please check if you typed it correctly in the recipe."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue