Commit 5488d406 authored by Nurlan's avatar Nurlan

patches: eget check has been changed to epm (eterbug #19027)

parent 6840932b
From ce433ca6200126ac43aa43ab295139fd8296047a Mon Sep 17 00:00:00 2001
From 31b187b7789577e7908fb1f6f121da6eb2ac5655 Mon Sep 17 00:00:00 2001
From: Nurlan Usenov <suren@etersoft.ru>
Date: Tue, 1 Apr 2025 12:45:12 +0300
Subject: [PATCH] winetricks: added eget via epm
---
src/winetricks | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/src/winetricks b/src/winetricks
index ef21df4..52020ff 100755
index ef21df4..60c35a7 100755
--- a/src/winetricks
+++ b/src/winetricks
@@ -1577,6 +1577,19 @@ w_download_to()
-o "${_W_file}" \
${_W_agent:+--user-agent="${_W_agent}"} \
"${_W_url}"
+ elif [ "${WINETRICKS_DOWNLOADER}" = "eget" ] ; then
+ epm tool eget \
+ elif [ "${WINETRICKS_DOWNLOADER}" = "$EGET" ] ; then
+ $EGET \
+ -O "${_W_file}" \
+ -nd \
+ -c\
......@@ -28,36 +31,50 @@ index ef21df4..52020ff 100755
else
w_die "Here be dragons"
fi
@@ -2851,7 +2864,7 @@ winetricks_download_setup()
@@ -2849,9 +2862,12 @@ _EOF_
# I.e., things common to w_download_to(), winetricks_download_to_stdout(), and winetricks_stats_report())
winetricks_download_setup()
{
+ export PATH="$PATH:/usr/share/eepm"
+ EGET="tools_eget"
+
# shellcheck disable=SC2104
case "${WINETRICKS_DOWNLOADER}" in
- aria2c|curl|wget|fetch) : ;;
+ aria2c|curl|wget|fetch|eget) : ;;
+ aria2c|curl|wget|fetch|$EGET) : ;;
"") if [ -x "$(command -v aria2c 2>/dev/null)" ] ; then
WINETRICKS_DOWNLOADER="aria2c"
elif [ -x "$(command -v wget 2>/dev/null)" ] ; then
@@ -2927,6 +2940,9 @@ winetricks_dl_url_to_stdout()
@@ -2860,6 +2876,8 @@ winetricks_download_setup()
WINETRICKS_DOWNLOADER="curl"
elif [ -x "$(command -v fetch 2>/dev/null)" ] ; then
WINETRICKS_DOWNLOADER="fetch"
+ elif [ -x "$(command -v $EGET 2>/dev/null)" ] ; then
+ WINETRICKS_DOWNLOADER="$EGET"
else
w_die "Please install wget or aria2c (or, if those aren't available, curl)"
fi
@@ -2927,6 +2945,9 @@ winetricks_dl_url_to_stdout()
elif [ "${WINETRICKS_DOWNLOADER}" = "fetch" ] ; then
# fetch does not support retry count
${torify} fetch -o - -T "${WINETRICKS_DOWNLOADER_TIMEOUT}" "$1" 2>/dev/null
+ elif [ "${WINETRICKS_DOWNLOADER}" = "eget" ] ; then
+ epm tool eget -q -O - --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
+ elif [ "${WINETRICKS_DOWNLOADER}" = "$EGET" ] ; then
+ $EGET -q -O - --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
+ --tries "${WINETRICKS_DOWNLOADER_RETRIES}" "$1"
else
w_die "Please install aria2c, curl, or wget"
fi
@@ -18855,6 +18871,10 @@ winetricks_stats_report()
@@ -18855,6 +18876,10 @@ winetricks_stats_report()
--max-tries="${WINETRICKS_DOWNLOADER_RETRIES}" \
--save-session='' \
"http://kegel.com/data/winetricks-usage?${report}" > /dev/null 2>&1 || true
+ elif [ "${WINETRICKS_DOWNLOADER}" = "eget" ] ; then
+ epm tool eget --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
+ elif [ "${WINETRICKS_DOWNLOADER}" = "$EGET" ] ; then
+ $EGET --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
+ --tries "${WINETRICKS_DOWNLOADER_RETRIES}" \
+ --get-response "http://kegel.com/data/winetricks-usage?${report}" > /dev/null 2>&1 || true
else
w_die "Here be dragons"
fi
--
2.33.8
2.50.1
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