Commit 6db5fc38 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-assure: use epm command instead internal functions

parent 6ed16d31
...@@ -57,7 +57,6 @@ __epm_assure() ...@@ -57,7 +57,6 @@ __epm_assure()
[ -n "$2" ] || fatal "You need run with package name param when use with absolute path" [ -n "$2" ] || fatal "You need run with package name param when use with absolute path"
# TODO: below we install in some semimanual way
docmd epm --auto --skip-installed install "$2" docmd epm --auto --skip-installed install "$2"
return return
fi fi
...@@ -74,18 +73,13 @@ __epm_assure() ...@@ -74,18 +73,13 @@ __epm_assure()
# TODO: use package name normalization # TODO: use package name normalization
info "Installing appropriate package for $1 command..." info "Installing appropriate package for $1 command..."
# TODO: why we can't use epm install here? it can be non interactive and skip-installed
# QUESTION: how we can this package is installed if its not?
load_helper epm-install
local PACKAGE="$2" local PACKAGE="$2"
[ -n "$PACKAGE" ] || PACKAGE="$1" [ -n "$PACKAGE" ] || PACKAGE="$1"
#epm install $2
# copied from epm_install local PACKAGEVERSION="$3"
local names="$(echo "$PACKAGE" | filter_out_installed_packages)" warning "TODO: check for PACKAGEVERSION is missed"
non_interactive=1 epm_install_names $names docmd epm --auto --skip-installed install "$PACKAGE"
} }
......
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