Commit 09eda972 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --nodeps support for rpm in install/remove

parent ebde6e75
......@@ -176,7 +176,6 @@ for opt in "$@" ; do
quiet=1
;;
--nodeps) # HELPOPT: skip dependency check (during install/simulate and so on)
fatal "--nodeps not realized yet"
nodeps="--nodeps"
;;
--auto) # HELPOPT: non interactive mode
......
......@@ -120,7 +120,7 @@ epm_install_files()
case $PMTYPE in
apt-rpm)
docmd $SUDO rpm -Uvh --force $@ && return
docmd $SUDO rpm -Uvh --force $nodeps $@ && return
docmd $SUDO apt-get install $@
return ;;
apt-dpkg)
......
......@@ -24,7 +24,7 @@ epm_remove_low()
[ -z "$1" ] && return
case $PMTYPE in
apt-rpm|yum-rpm|zypper-rpm|urpm-rpm)
docmd $SUDO rpm -ev $@
docmd $SUDO rpm -ev $nodeps $@
return ;;
apt-dpkg)
docmd $SUDO dpkg -P $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment