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
e44ea7d2
Commit
e44ea7d2
authored
Aug 17, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm_install: rewrite, use direct install via epm_install
parent
13efa8b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
epm
bin/epm
+1
-1
epm-epm_install
bin/epm-epm_install
+8
-8
No files found.
bin/epm
View file @
e44ea7d2
...
...
@@ -278,7 +278,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|selfinstall
)
# HELPCMD: install or update eepm from all in one script
ei|epminstall|
epm-install|
selfinstall
)
# HELPCMD: install or update eepm from all in one script
epm_cmd
=
epm_install
;;
print
)
# HELPCMD: print various info, run epm print help for details
...
...
bin/epm-epm_install
View file @
e44ea7d2
...
...
@@ -17,20 +17,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
myinit
(){
etersoft_updates_site
=
"http://updates.etersoft.ru/pub/Etersoft/Sisyphus/
$(
$DISTRVENDOR
-e
)
/"
download_dir
=
"/tmp"
}
load_helper epm-install
download_epm
(){
# TODO: use pkg_urls related install feature (pkg_urls=URL epm_install)
__download_epm
(){
download_dir
=
"/tmp"
download_link
=
$etersoft_updates_site
$(
wget
-qO-
$etersoft_updates_site
/ |
grep
-m1
-Eo
"eepm[^
\"
]+
\.
$(
$DISTRVENDOR
-p
)
"
|
tail
-n1
)
#"
eepm_package
=
"
$download_dir
/
$(
basename
$download_link
)
"
wget
-O
$eepm_package
$download_link
}
epm_epm_install
(){
myinit
download_epm
||
fatal
"Error. Check download link:
$download_link
"
epm i
$eepm_package
||
fatal
etersoft_updates_site
=
"http://updates.etersoft.ru/pub/Etersoft/Sisyphus/
$(
$DISTRVENDOR
-e
)
/"
__download_epm
||
fatal
"Error. Check download link:
$download_link
"
pkg_names
=
pkg_files
=
$eepm_package
epm_install
||
fatal
rm
-fv
$eepm_package
}
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