Commit 5b6a0a9e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm ei/ik: add checking for empty list

parent 9a94cb45
......@@ -39,7 +39,9 @@ __epm_korinf_list() {
__epm_korinf_install(){
local PACKAGE="$1"
# FIXME: some way to get latest package
local download_link=$(__epm_korinf_site)/$(__epm_korinf_list $PACKAGE$aftername | tail -n1)
local fn="$(__epm_korinf_list $PACKAGE$aftername | tail -n1)"
[ -n "$fn" ] || fatal "Can't find package file for $PACKAGE"
local download_link=$(__epm_korinf_site)/$fn
#info "Install $download_link ..."
pkg_names='' pkg_files='' pkg_urls="$download_link" epm_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