Commit 1ef0912f authored by Mikhail Tergoev's avatar Mikhail Tergoev

added PortProton user-agent for gitea

parent 3f57abba
...@@ -2545,7 +2545,7 @@ pw_port_update () { ...@@ -2545,7 +2545,7 @@ pw_port_update () {
fi fi
debug_timer --start -s "UPDATE_PP_GITEA" debug_timer --start -s "UPDATE_PP_GITEA"
if ! timeout 2 curl -f -s --list-only "$URL_PP_GITEA" > "${PORT_WINE_TMP_PATH}/curent_var_ver" if ! timeout 2 curl -A 'PortProton' -f -s --list-only "$URL_PP_GITEA" > "${PORT_WINE_TMP_PATH}/curent_var_ver"
then then
print_warning "https://git.linux-gaming.ru/ broken. Skip it..." print_warning "https://git.linux-gaming.ru/ broken. Skip it..."
UPDATE_SKIP_PP_GITEA="1" UPDATE_SKIP_PP_GITEA="1"
...@@ -2645,7 +2645,7 @@ pw_port_update () { ...@@ -2645,7 +2645,7 @@ pw_port_update () {
;; ;;
UPDATE_PP_GITEA) UPDATE_PP_GITEA)
if [[ ! -f "${PORT_WINE_TMP_PATH}/curent_var_ver" ]] \ if [[ ! -f "${PORT_WINE_TMP_PATH}/curent_var_ver" ]] \
&& ! timeout 2 curl -f -s --list-only "$URL_PP_GITEA" > "${PORT_WINE_TMP_PATH}/curent_var_ver" && ! timeout 2 curl -A 'PortProton' -f -s --list-only "$URL_PP_GITEA" > "${PORT_WINE_TMP_PATH}/curent_var_ver"
then then
pw_check_update pw_check_update
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment