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
3d1ff000
Commit
3d1ff000
authored
Nov 19, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow ei/ik install any package(s) from Korinf
parent
c5e36613
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
epm
bin/epm
+1
-1
epm-epm_install
bin/epm-epm_install
+18
-4
No files found.
bin/epm
View file @
3d1ff000
...
...
@@ -287,7 +287,7 @@ check_command()
site|url
)
# HELPCMD: open package's site in a browser (use -p for open packages.altlinux.org site)
epm_cmd
=
site
;;
ei|
epminstall|epm-install|selfinstall
)
# HELPCMD: install or update eepm package from all in one script
ei|
ik|epminstall|epm-install|selfinstall
)
# HELPCMD: install package(s) from Korinf (eepm by default)
epm_cmd
=
epm_install
;;
print
)
# HELPCMD: print various info, run epm print help for details
...
...
bin/epm-epm_install
View file @
3d1ff000
...
...
@@ -20,11 +20,25 @@
load_helper epm-install
epm_epm_install
(){
assure_exists wget
local
etersoft_updates_site
=
"http://updates.etersoft.ru/pub/Korinf/
$(
$DISTRVENDOR
-e
)
"
__epm_korinf_install
(){
local
PACKAGE
=
"
$1
"
local
archprefix
=
""
[
"
$(
$DISTRVENDOR
-b
)
"
=
"64"
]
&&
archprefix
=
"x86_64/"
local
etersoft_updates_site
=
"http://updates.etersoft.ru/pub/Korinf/
$archprefix
$(
$DISTRVENDOR
-e
)
"
# FIXME: some way to get latest package
local
download_link
=
$etersoft_updates_site
/
$(
wget
-qO-
$etersoft_updates_site
/ |
grep
-m1
-Eo
"eepm[^
\"
]+
\.
$(
$DISTRVENDOR
-p
)
"
|
tail
-n1
)
#"
assure_exists wget
# TODO: use eget or file with last versions?
local
download_link
=
$etersoft_updates_site
/
$(
wget
-qO-
$etersoft_updates_site
/ |
grep
-m1
-Eo
"
$PACKAGE
[^
\"
]+
\.
$(
$DISTRVENDOR
-p
)
"
|
tail
-n1
)
#"
pkg_names
=
''
pkg_files
=
''
pkg_urls
=
"
$download_link
"
epm_install
}
epm_epm_install
(){
local
i
local
pkglist
=
"
$pkg_filenames
"
# install epm by default
[
-n
"
$pkglist
"
]
||
pkglist
=
"eepm"
for
i
in
$pkglist
;
do
__epm_korinf_install
$i
done
}
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