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 () {
fi
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
print_warning "https://git.linux-gaming.ru/ broken. Skip it..."
UPDATE_SKIP_PP_GITEA="1"
......@@ -2645,7 +2645,7 @@ pw_port_update () {
;;
UPDATE_PP_GITEA)
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
pw_check_update
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