Commit 69d39d88 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm install: add workaround for --noscripts when using apt for additional requires

parent 5cafd5c3
......@@ -334,6 +334,21 @@ epm_install_files()
# if run with --nodeps, do not fallback on hi level
[ -n "$nodeps" ] && return $RES
# try install via apt if we could't install package file via rpm (we guess we need install requirements firsly)
# TODO: use it always (apt can install version from repo instead of a file package)
if [ -n "$noscripts" ] ; then
info "Workaround for install packages via apt with --noscripts (see https://bugzilla.altlinux.org/44670)"
info "Firstly install package requrements …"
# TODO: can we install only requires via apt?
epm install $(epm req --short $files) || return
# retry with rpm
sudocmd rpm -Uvh $force $noscripts $nodeps $files && save_installed_packages $files
return
fi
# common fallback
;;
esac
......
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