Commit 87632daf authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-install: always use apt-get for install .deb file packages

parent a0d92509
...@@ -340,19 +340,25 @@ epm_install_files() ...@@ -340,19 +340,25 @@ epm_install_files()
__epm_check_if_try_install_rpm $@ && return __epm_check_if_try_install_rpm $@ && return
# FIXME: return false in case no install and in case install with broken deps # TODO: if dpkg can't install due missed deps, trying with apt (as for now, --refuse-depends, --refuse-breaks don't help me)
sudocmd dpkg $DPKGOPTIONS -i $@
local RES=$?
# if run with --nodeps, do not fallback on hi level in any case if [ -n "$nodeps" ] ; then
[ -n "$nodeps" ] && return $RES sudocmd dpkg $DPKGOPTIONS -i $@
# return OK if all is OK return
[ "$RES" = "0" ] && return $RES fi
# are there apt that don't support dpkg files to install? # are there apt that don't support dpkg files to install?
epm_install_names $(make_filepath "$@") epm_install_names $(make_filepath "$@")
return return
# old way:
sudocmd dpkg $DPKGOPTIONS -i $@
local RES=$?
# return OK if all is OK
[ "$RES" = "0" ] && return $RES
# TODO: workaround with epm-check needed only for very old apt # TODO: workaround with epm-check needed only for very old apt
# run apt -f install if there are were some errors during install # run apt -f install if there are were some errors during install
......
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