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
4043b56d
Commit
4043b56d
authored
Oct 23, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install: add --noscripts support for rpm install
parent
674cce3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
epm
bin/epm
+5
-1
epm-install
bin/epm-install
+2
-1
No files found.
bin/epm
View file @
4043b56d
...
@@ -93,6 +93,7 @@ force=
...
@@ -93,6 +93,7 @@ force=
repack
=
repack
=
inscript
=
inscript
=
scripts
=
scripts
=
noscripts
=
short
=
short
=
direct
=
direct
=
sort
=
sort
=
...
@@ -395,9 +396,12 @@ check_option()
...
@@ -395,9 +396,12 @@ check_option()
--repack
)
# HELPOPT: repack rpm package(s) before install
--repack
)
# HELPOPT: repack rpm package(s) before install
repack
=
"--repack"
repack
=
"--repack"
;;
;;
--scripts
)
# HELPOPT: include scripts in repacked rpm package(s) (see --repack or repacking when foreign package is installed)
--scripts
)
# HELPOPT: include scripts in repacked rpm package(s) (see --repack or repacking when foreign package is installed)
scripts
=
"--scripts"
scripts
=
"--scripts"
;;
;;
--noscripts
)
# HELPOPT: disable scripts in install packages
noscripts
=
"--noscripts"
;;
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
# TODO: how to read arg?
# TODO: how to read arg?
sort
=
"
$1
"
sort
=
"
$1
"
...
...
bin/epm-install
View file @
4043b56d
...
@@ -307,6 +307,7 @@ epm_install_files()
...
@@ -307,6 +307,7 @@ epm_install_files()
# do not using low-level for install by file path (FIXME: reasons?)
# do not using low-level for install by file path (FIXME: reasons?)
if
!
is_dirpath
"
$@
"
||
[
"
$(
get_package_type
"
$@
"
)
"
=
"rpm"
]
;
then
if
!
is_dirpath
"
$@
"
||
[
"
$(
get_package_type
"
$@
"
)
"
=
"rpm"
]
;
then
sudocmd rpm
-Uvh
$force
$nodeps
$@
&&
save_installed_packages
$@
&&
return
sudocmd rpm
-Uvh
$force
$nodeps
$@
&&
save_installed_packages
$@
&&
return
sudocmd rpm
-Uvh
$force
$noscripts
$nodeps
$@
&&
save_installed_packages
$@
&&
return
local
RES
=
$?
local
RES
=
$?
# TODO: check rpm result code and convert it to compatible format if possible
# TODO: check rpm result code and convert it to compatible format if possible
__epm_check_if_rpm_already_installed
$@
&&
return
__epm_check_if_rpm_already_installed
$@
&&
return
...
@@ -347,7 +348,7 @@ epm_install_files()
...
@@ -347,7 +348,7 @@ epm_install_files()
*
-rpm
)
*
-rpm
)
__epm_check_if_try_install_deb
$@
&&
return
__epm_check_if_try_install_deb
$@
&&
return
__epm_check_if_src_rpm
$@
__epm_check_if_src_rpm
$@
sudocmd rpm
-Uvh
$force
$nodeps
$@
&&
return
sudocmd rpm
-Uvh
$force
$no
scripts
$no
deps
$@
&&
return
local
RES
=
$?
local
RES
=
$?
__epm_check_if_rpm_already_installed
$@
&&
return
__epm_check_if_rpm_already_installed
$@
&&
return
...
...
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