Commit 15dcd7af authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-install: add comments

parent 0259c5b3
...@@ -285,6 +285,9 @@ __epm_check_if_try_install_deb() ...@@ -285,6 +285,9 @@ __epm_check_if_try_install_deb()
[ -n "$debpkgs" ] || return 1 [ -n "$debpkgs" ] || return 1
assure_exists alien assure_exists alien
assure_exists dpkg
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# assure_exists debconf
local TDIR=$(mktemp -d) local TDIR=$(mktemp -d)
cd $TDIR || fatal cd $TDIR || fatal
...@@ -315,6 +318,7 @@ __epm_check_if_try_install_rpm() ...@@ -315,6 +318,7 @@ __epm_check_if_try_install_rpm()
assure_exists alien assure_exists alien
assure_exists fakeroot assure_exists fakeroot
assure_exists rpm
local TDIR=$(mktemp -d) local TDIR=$(mktemp -d)
cd $TDIR || fatal cd $TDIR || fatal
...@@ -360,7 +364,9 @@ epm_install_files() ...@@ -360,7 +364,9 @@ epm_install_files()
apt-rpm) apt-rpm)
__epm_check_if_try_install_deb $@ && return __epm_check_if_try_install_deb $@ && return
# do not use low-level for install by file path # TODO: add --repack support, will force repack rpm
# do not using low-level for install by file path (FIXME: reasons?)
if ! is_dirpath "$@" || [ "$(get_package_type "$@")" = "rpm" ] ; then if ! is_dirpath "$@" || [ "$(get_package_type "$@")" = "rpm" ] ; then
sudocmd rpm -Uvh $force $nodeps $@ && return sudocmd rpm -Uvh $force $nodeps $@ && return
local RES=$? local RES=$?
......
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