Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
5aac6828
Commit
5aac6828
authored
Apr 10, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add support for EGET_BACKEND=curl
parent
e6d816c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
tools_eget
bin/tools_eget
+9
-8
No files found.
bin/tools_eget
View file @
5aac6828
...
@@ -313,8 +313,8 @@ Options:
...
@@ -313,8 +313,8 @@ Options:
Supported URLs:
Supported URLs:
ftp:// http:// https:// file:/ ipfs://
ftp:// http:// https:// file:/ ipfs://
Supported backends
:
Supported backends
(set like EGET_BACKEND=curl)
wget curl
ipfs
(todo: aria2c)
wget curl (todo: aria2c)
Examples:
Examples:
$
eget http://ftp.somesite.ru/package-*.x64.tar
$
eget http://ftp.somesite.ru/package-*.x64.tar
...
@@ -626,7 +626,7 @@ fi
...
@@ -626,7 +626,7 @@ fi
WGET
=
"
$(
print_command_path wget
)
"
WGET
=
"
$(
print_command_path wget
)
"
CURL
=
"
$(
print_command_path curl
)
"
if
is_fileurl
"
$1
"
;
then
if
is_fileurl
"
$1
"
;
then
...
@@ -710,7 +710,8 @@ url_get_real_url()
...
@@ -710,7 +710,8 @@ url_get_real_url()
}
}
elif
[
-n
"
$WGET
"
]
&&
[
"
$EGET_BACKEND
"
!=
"curl"
]
;
then
elif
[
-n
"
$WGET
"
]
&&
[
"
$EGET_BACKEND
"
!=
"curl"
]
||
[
"
$EGET_BACKEND
"
=
"wget"
]
;
then
[
-n
"
$WGET
"
]
||
fatal
"There are no wget in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install wget"
__wget
()
__wget
()
{
{
if
[
-n
"
$WGETUSERAGENT
"
]
;
then
if
[
-n
"
$WGETUSERAGENT
"
]
;
then
...
@@ -799,9 +800,8 @@ url_get_filename()
...
@@ -799,9 +800,8 @@ url_get_filename()
}
}
else
elif
[
-n
"
$CURL
"
]
&&
[
"
$EGET_BACKEND
"
!=
"wget"
]
||
[
"
$EGET_BACKEND
"
=
"curl"
]
;
then
CURL
=
"
$(
print_command_path curl
)
"
[
-n
"
$CURL
"
]
||
fatal
"There are no curl in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install curl"
[
-n
"
$CURL
"
]
||
fatal
"There are no wget nor curl in the system. Install it with
$
epm install curl"
__curl
()
__curl
()
{
{
if
[
-n
"
$CURLUSERAGENT
"
]
;
then
if
[
-n
"
$CURLUSERAGENT
"
]
;
then
...
@@ -887,7 +887,8 @@ url_get_filename()
...
@@ -887,7 +887,8 @@ url_get_filename()
basename
"
$(
url_get_real_url
"
$URL
"
)
"
basename
"
$(
url_get_real_url
"
$URL
"
)
"
}
}
else
fatal
"There are no wget nor curl in the system. Install something with
$
epm install wget"
fi
fi
...
...
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