Commit fc209ee4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm install: improve comments

parent 7f2a9efa
...@@ -455,14 +455,14 @@ epm_install() ...@@ -455,14 +455,14 @@ epm_install()
# TODO: for some packages with dependencies apt will ask later again # TODO: for some packages with dependencies apt will ask later again
fi fi
# TODO: put it after empty install list checking?
if [ -n "$direct" ] && [ -z "$repack" ] ; then if [ -n "$direct" ] && [ -z "$repack" ] ; then
# it will put pkg_urls into pkg_files and reconstruct pkg_filenames
__handle_direct_install __handle_direct_install
fi fi
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
if [ -n "$pkg_urls" ] ; then if [ -n "$pkg_urls" ] ; then
load_helper epm-download load_helper epm-download
# it will put downloaded by pkg_urls packages to pkg_files and reconstruct pkg_filenames
__handle_pkg_urls_to_install __handle_pkg_urls_to_install
fi fi
...@@ -476,10 +476,10 @@ epm_install() ...@@ -476,10 +476,10 @@ epm_install()
#local names="$(echo $pkg_names | exp_with_arch_suffix | filter_out_installed_packages)" #local names="$(echo $pkg_names | exp_with_arch_suffix | filter_out_installed_packages)"
local files="$(echo $pkg_files | filter_out_installed_packages)" local files="$(echo $pkg_files | filter_out_installed_packages)"
# can be empty only after skip installed # can be empty only after all installed packages were skipped
if [ -z "$files$names" ] ; then if [ -z "$files$names" ] ; then
# TODO: assert $skip_installed # TODO: assert $skip_installed
[ -n "$verbose" ] && info "Skip empty install list (filtered out)" [ -n "$verbose" ] && info "Skip empty install list (filtered out, all requested packages is already installed)"
# FIXME: see to_remove below # FIXME: see to_remove below
return 0 return 0
fi fi
...@@ -500,16 +500,17 @@ epm_install() ...@@ -500,16 +500,17 @@ epm_install()
;; ;;
esac esac
[ -z "$files" ] && debug "Skip empty install files list" && return 0
# save files before install and repack if [ -n "$download_only" ] ; then
if [ -n "$download_only" ] && [ -n "$files" ] ; then # save files to the current dir before install and repack
echo echo
cp -v $files "$EPMCURDIR" cp -v $files "$EPMCURDIR"
return return
fi fi
# repack binary files
if [ -n "$repack" ] ; then if [ -n "$repack" ] ; then
# repack binary files if asked
__epm_repack $files || return __epm_repack $files || return
files="$repacked_pkgs" files="$repacked_pkgs"
fi fi
......
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