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
Nurlan
eepm
Commits
c290483c
Commit
c290483c
authored
Aug 25, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-epm_install: support mirrors
parent
acbd89e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
epm-epm_install
bin/epm-epm_install
+33
-1
No files found.
bin/epm-epm_install
View file @
c290483c
...
...
@@ -20,6 +20,36 @@
load_helper epm-install
# copied from play.d/common.sh
check_url_is_accessible
()
{
local
res
epm tool eget
--check
"
$1
"
}
# update URL variable
update_url_if_need_mirrored
()
{
local
MIRROR
=
"
$1
"
local
SECONDURL
check_url_is_accessible
"
$URL
"
&&
return
if
[
-n
"
$MIRROR
"
]
;
then
check_url_is_accessible
"
$MIRROR
"
&&
URL
=
"
$MIRROR
"
return
fi
MIRROR
=
"https://mirror.eterfund.ru"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
MIRROR
=
"https://mirror.eterfund.org"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
}
__epm_korinf_site_mask
()
{
local
MASK
=
"
$1
"
local
archprefix
=
""
...
...
@@ -27,7 +57,9 @@ __epm_korinf_site_mask() {
rhas
"
$MASK
"
"[-_]"
||
MASK
=
"
$MASK
[-_][0-9]"
# set arch for Korinf compatibility
[
"
$(
$DISTRVENDOR
-a
)
"
=
"x86_64"
]
&&
archprefix
=
"x86_64/"
echo
"http://updates.etersoft.ru/pub/Korinf/
$archprefix
$(
$DISTRVENDOR
-e
)
/
$MASK
*.
$(
$DISTRVENDOR
-p
)
"
URL
=
"http://updates.etersoft.ru/pub/Korinf"
update_url_if_need_mirrored
echo
"
$URL
/
$archprefix
$(
$DISTRVENDOR
-e
)
/
$MASK
*.
$(
$DISTRVENDOR
-p
)
"
}
__epm_korinf_list
()
{
...
...
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