Commit feda0cd9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-install: use apt-get install as fallback when install files with dpkg

parent babe5c3e
......@@ -343,12 +343,20 @@ epm_install_files()
# FIXME: return false in case no install and in case install with broken deps
sudocmd dpkg $DPKGOPTIONS -i $@
local RES=$?
# if run with --nodeps, do not fallback on hi level
# if run with --nodeps, do not fallback on hi level in any case
[ -n "$nodeps" ] && return $RES
# fall to apt-get -f install for fix deps
# can't use APTOPTIONS with empty install args
epm_install_names -f
# return OK if all is OK
[ "$RES" = "0" ] && return $RES
epm_install_names "$@"
return
# TODO: workaround with epm-check needed only for very old apt
# run apt -f install if there are were some errors during install
load_helper epm-check
epm_check
# repeat install for get correct status
sudocmd dpkg $DPKGOPTIONS -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