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
f914e005
Commit
f914e005
authored
Mar 31, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install: don't use --replacepkgs when install only one package
parent
3385ffe1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
epm-install
bin/epm-install
+14
-5
No files found.
bin/epm-install
View file @
f914e005
...
...
@@ -345,10 +345,13 @@ epm_install_files()
fi
# --replacepkgs: Install the Package Even If Already Installed
sudocmd rpm
-Uvh
--replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
&&
return
local
replacepkgs
=
'--replacepkgs'
# don't use --replacepkgs when install only one file
[
-f
"
$files
"
]
&&
replacepkgs
=
''
sudocmd rpm
-Uvh
$replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
&&
return
local
RES
=
$?
# TODO: check rpm result code and convert it to compatible format if possible
#__epm_check_if_rpm_already_installed $force
$noscripts $nodeps $files && return
__epm_check_if_rpm_already_installed
$force
$replacepkgs
$noscripts
$nodeps
$files
&&
return
# if run with --nodeps, do not fallback on hi level
[
-n
"
$nodeps
"
]
&&
return
$RES
...
...
@@ -366,7 +369,10 @@ epm_install_files()
epm
install
$(
epm req
--short
$files
)
||
return
# retry with rpm
# --replacepkgs: Install the Package Even If Already Installed
sudocmd rpm
-Uvh
--replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
local
replacepkgs
=
'--replacepkgs'
# don't use --replacepkgs when install only one file
[
-f
"
$files
"
]
&&
replacepkgs
=
''
sudocmd rpm
-Uvh
$replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
return
fi
...
...
@@ -453,10 +459,13 @@ epm_install_files()
__epm_check_if_src_rpm
$files
# --replacepkgs: Install the Package Even If Already Installed
sudocmd rpm
-Uvh
--replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
return
local
replacepkgs
=
'--replacepkgs'
# don't use --replacepkgs when install only one file
[
-f
"
$files
"
]
&&
replacepkgs
=
''
sudocmd rpm
-Uvh
$replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
return
local
RES
=
$?
#__epm_check_if_rpm_already_installed $force
$noscripts $nodeps $files && return
__epm_check_if_rpm_already_installed
$force
$replacepkgs
$noscripts
$nodeps
$files
&&
return
# if run with --nodeps, do not fallback on hi level
[
-n
"
$nodeps
"
]
&&
return
$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