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