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
42493910
Commit
42493910
authored
8 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install: add direct install (not via apt) support for ALT Linux
parent
287526af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
epm
bin/epm
+4
-0
epm-install
bin/epm-install
+22
-1
No files found.
bin/epm
View file @
42493910
...
...
@@ -80,6 +80,7 @@ nodeps=
noremove
=
force
=
short
=
direct
=
sort
=
non_interactive
=
skip_installed
=
...
...
@@ -335,6 +336,9 @@ check_option()
--short
)
# HELPOPT: short output (just 'package' instead 'package-version-release')
short
=
"--short"
;;
--direct
)
# HELPOPT: direct install package file from ftp (not via hilevel repository manager)
direct
=
"--direct"
;;
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
# TODO: how to read arg?
sort
=
"
$1
"
...
...
This diff is collapsed.
Click to expand it.
bin/epm-install
View file @
42493910
...
...
@@ -323,6 +323,23 @@ __epm_check_if_try_install_rpm()
return
0
}
__handle_direct_install
()
{
case
"
$DISTRNAME
"
in
"ALTLinux"
)
load_helper epm-download
local
pkg url
for
pkg
in
$pkg_names
;
do
url
=
$(
__epm_get_altpkg_url
$pkg
)
[
-n
"
$url
"
]
||
continue
# TODO: use estrlist
pkg_urls
=
"
$pkg_urls
$url
"
done
# FIXME: need remove
pkg_names
=
""
;;
esac
}
epm_install_files
()
{
...
...
@@ -514,6 +531,10 @@ epm_install()
return
fi
if
[
-n
"
$direct
"
]
;
then
__handle_direct_install
fi
# if possible, it will put pkg_urls into pkg_files or pkg_names
if
[
-n
"
$pkg_urls
"
]
;
then
load_helper epm-download
...
...
@@ -527,7 +548,7 @@ epm_install()
[
-z
"
$files$names
"
]
&&
info
"Skip empty install list"
&&
return
22
if
[
-z
"
$files
"
]
;
then
if
[
-z
"
$files
"
]
&&
[
-z
"
$direct
"
]
;
then
# it is useful for first time running
update_repo_if_needed
fi
...
...
This diff is collapsed.
Click to expand it.
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