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