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()
__epm_check_if_try_install_rpm $@ && return
# FIXME: return false in case no install and in case install with broken deps
sudocmd dpkg $DPKGOPTIONS -i $@
local RES=$?
# TODO: if dpkg can't install due missed deps, trying with apt (as for now, --refuse-depends, --refuse-breaks don't help me)
# if run with --nodeps, do not fallback on hi level in any case
[ -n "$nodeps" ] && return $RES
# return OK if all is OK
[ "$RES" = "0" ] && return $RES
if [ -n "$nodeps" ] ; then
sudocmd dpkg $DPKGOPTIONS -i $@
return
fi
# are there apt that don't support dpkg files to install?
epm_install_names $(make_filepath "$@")
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
# 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