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
dce3a343
Commit
dce3a343
authored
Jan 29, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install: forbid src.rpm installation
parent
c760a3b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
epm-install
bin/epm-install
+11
-0
No files found.
bin/epm-install
View file @
dce3a343
...
...
@@ -314,6 +314,15 @@ __handle_direct_install()
esac
}
# TODO: forbid src.rpm
__epm_check_if_src_rpm
()
{
local
pkg
for
pkg
in
$@
;
do
echo
"
$pkg
"
|
grep
-q
"
\.
src.
\r
pm"
&&
fatal
"Installation of a source packages (like '
$pkg
') is not supported."
done
}
epm_install_files
()
{
[
-z
"
$1
"
]
&&
return
...
...
@@ -326,6 +335,7 @@ epm_install_files()
# TODO: replace with name changed function
__epm_check_if_try_install_deb
$@
&&
return
__epm_check_if_src_rpm
$@
# do not using low-level for install by file path (FIXME: reasons?)
if
!
is_dirpath
"
$@
"
||
[
"
$(
get_package_type
"
$@
"
)
"
=
"rpm"
]
;
then
...
...
@@ -368,6 +378,7 @@ epm_install_files()
*
-rpm
)
__epm_check_if_try_install_deb
$@
&&
return
__epm_check_if_src_rpm
$@
sudocmd rpm
-Uvh
$force
$nodeps
$@
&&
return
local
RES
=
$?
...
...
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