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
Vladislav
eepm
Commits
ad31544f
Commit
ad31544f
authored
Sep 10, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: add --force support for install
parent
0a3957c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
epm
bin/epm
+4
-0
epm-install
bin/epm-install
+2
-2
No files found.
bin/epm
View file @
ad31544f
...
@@ -62,6 +62,7 @@ set_pm_type
...
@@ -62,6 +62,7 @@ set_pm_type
verbose
=
verbose
=
quiet
=
quiet
=
nodeps
=
nodeps
=
force
=
non_interactive
=
non_interactive
=
skip_installed
=
skip_installed
=
show_command_only
=
show_command_only
=
...
@@ -195,6 +196,9 @@ for opt in "$@" ; do
...
@@ -195,6 +196,9 @@ for opt in "$@" ; do
--nodeps
)
# HELPOPT: skip dependency check (during install/simulate and so on)
--nodeps
)
# HELPOPT: skip dependency check (during install/simulate and so on)
nodeps
=
"--nodeps"
nodeps
=
"--nodeps"
;;
;;
--force
)
# HELPOPT: force install/remove package (f.i., override)
force
=
"--force"
;;
--auto
)
# HELPOPT: non interactive mode
--auto
)
# HELPOPT: non interactive mode
non_interactive
=
1
non_interactive
=
1
;;
;;
...
...
bin/epm-install
View file @
ad31544f
...
@@ -127,7 +127,7 @@ epm_install_files()
...
@@ -127,7 +127,7 @@ epm_install_files()
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm|urpm-rpm
)
apt-rpm|urpm-rpm
)
docmd
$SUDO
rpm
-Uvh
--
force
$nodeps
$@
&&
return
docmd
$SUDO
rpm
-Uvh
$
force
$nodeps
$@
&&
return
# use install_names
# use install_names
;;
;;
apt-dpkg
)
apt-dpkg
)
...
@@ -135,7 +135,7 @@ epm_install_files()
...
@@ -135,7 +135,7 @@ epm_install_files()
docmd
$SUDO
apt-get
-f
install
docmd
$SUDO
apt-get
-f
install
return
;;
return
;;
yum-rpm
)
yum-rpm
)
docmd
$SUDO
rpm
-Uvh
--
force
$@
&&
return
docmd
$SUDO
rpm
-Uvh
$
force
$@
&&
return
docmd
$SUDO
yum
--nogpgcheck
install
$@
docmd
$SUDO
yum
--nogpgcheck
install
$@
return
;;
return
;;
pkg_add
)
pkg_add
)
...
...
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