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
ba89b172
Commit
ba89b172
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm ei: add support to set Korinf URL
parent
aa499218
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
epm-epm_install
bin/epm-epm_install
+10
-2
No files found.
bin/epm-epm_install
View file @
ba89b172
...
...
@@ -20,6 +20,8 @@
load_helper epm-install
# default repo
EPM_KORINF_REPO_URL
=
"https://updates.etersoft.ru/pub/Korinf"
__epm_korinf_site_mask
()
{
local
MASK
=
"
$1
"
...
...
@@ -28,9 +30,9 @@ __epm_korinf_site_mask() {
rhas
"
$MASK
"
"[-_]"
||
MASK
=
"
$MASK
[-_][0-9]"
# set arch for Korinf compatibility
[
"
$(
$DISTRVENDOR
-a
)
"
=
"x86_64"
]
&&
archprefix
=
"x86_64/"
local
URL
=
"
http://updates.etersoft.ru/pub/Korinf
/
$archprefix
$(
$DISTRVENDOR
-e
)
"
local
URL
=
"
$EPM_KORINF_REPO_URL
/
$archprefix
$(
$DISTRVENDOR
-e
)
"
if
!
eget
--check
"
$URL
"
;
then
tURL
=
"
http://updates.etersoft.ru/pub/Korinf
/
$archprefix
$(
$DISTRVENDOR
--vendor-name
)
/
$(
$DISTRVENDOR
--repo-name
)
"
tURL
=
"
$EPM_KORINF_REPO_URL
/
$archprefix
$(
$DISTRVENDOR
--vendor-name
)
/
$(
$DISTRVENDOR
--repo-name
)
"
docmd eget
--check
"
$tURL
"
&&
URL
=
"
$tURL
"
fi
echo
"
$URL
/
$MASK
*.
$PKGFORMAT
"
...
...
@@ -67,6 +69,7 @@ epm_epm_install_help()
get_help HELPCMD
$SHAREDIR
/epm-epm_install
cat
<<
EOF
Default Korinf repository:
$EPM_KORINF_REPO_URL
Examples:
epm ei [epm|eepm] - install latest eepm (default action)
...
...
@@ -78,6 +81,11 @@ EOF
epm_epm_install
()
{
if
is_url
"
$1
"
;
then
EPM_KORINF_REPO_URL
=
"
$1
"
info
"Using
$EPM_KORINF_REPO_URL
repo ..."
shift
fi
case
"
$1
"
in
...
...
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