Commit c3183ab1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

install/reinstall: try use rpm for files

parent 9747794e
...@@ -69,18 +69,18 @@ epm_ni_install_names() ...@@ -69,18 +69,18 @@ epm_ni_install_names()
esac esac
} }
# for low level install
#is_alt && FANCYPERCENT=--fancypercent
#docmd $SUDO rpm -Uvh $FANCYPERCENT "$@"
epm_install_files() epm_install_files()
{ {
[ -z "$1" ] && return [ -z "$1" ] && return
case $DISTRNAME in case $DISTRNAME in
ALTLinux|PCLinux) ALTLinux)
docmd $SUDO rpm -Uvh --force $@ && return
docmd $SUDO apt-get install $@ docmd $SUDO apt-get install $@
return ;; return ;;
PCLinux)
docmd $SUDO rpm -Uvh --force $@
return ;;
FreeBSD) FreeBSD)
docmd $SUDO pkg_add $@ docmd $SUDO pkg_add $@
return ;; return ;;
......
...@@ -54,7 +54,8 @@ epm_reinstall_files() ...@@ -54,7 +54,8 @@ epm_reinstall_files()
case $DISTRNAME in case $DISTRNAME in
ALTLinux|PCLinux) ALTLinux|PCLinux)
docmd $SUDO rpm -Uvh --force $@ docmd $SUDO rpm -Uvh --force $@ && return
docmd $SUDO apt-get --reinstall install $@
return ;; return ;;
Ubuntu|Debian|Mint) Ubuntu|Debian|Mint)
docmd $SUDO dpkg -i $@ docmd $SUDO dpkg -i $@
......
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