Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
winetricks
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
winetricks
Commits
0b2ac3a5
Commit
0b2ac3a5
authored
Apr 01, 2025
by
Nurlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetricks: added eget via epm
parent
fd0497af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
0001-winetricks-added-eget-via-epm.patch
patches/0001-winetricks-added-eget-via-epm.patch
+63
-0
No files found.
patches/0001-winetricks-added-eget-via-epm.patch
0 → 100644
View file @
0b2ac3a5
From ce433ca6200126ac43aa43ab295139fd8296047a 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
diff --git a/src/winetricks b/src/winetricks
index ef21df4..52020ff 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 \
+ -O "${_W_file}" \
+ -nd \
+ -c\
+ --read-timeout 300 \
+ --retry-connrefused \
+ --timeout "${WINETRICKS_DOWNLOADER_TIMEOUT}" \
+ --tries "${WINETRICKS_DOWNLOADER_RETRIES}" \
+ --header "Accept: */*" \
+ ${_W_cookiejar:+--load-cookies "${_W_cookiejar}"} \
+ ${_W_agent:+--user-agent="${_W_agent}"} \
+ "${_W_url}"
else
w_die "Here be dragons"
fi
@@ -2851,7 +2864,7 @@ winetricks_download_setup()
{
# shellcheck disable=SC2104
case "${WINETRICKS_DOWNLOADER}" in
- aria2c|curl|wget|fetch) : ;;
+ 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()
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}" \
+ --tries "${WINETRICKS_DOWNLOADER_RETRIES}" "$1"
else
w_die "Please install aria2c, curl, or wget"
fi
@@ -18855,6 +18871,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}" \
+ --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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment