Commit 893bbd63 authored by Vitaly Lipatov's avatar Vitaly Lipatov

replace --download-only with --save-only

parent 8d14fb5c
......@@ -102,6 +102,7 @@ short=
direct=
sort=
non_interactive=$EPM_AUTO
download=
download_only=
interactive=
force_yes=
......@@ -469,7 +470,10 @@ check_option()
--noscripts) # HELPOPT: disable scripts in install packages
noscripts="--noscripts"
;;
--download-only) # HELPOPT: download only the package
--save-only) # HELPOPT: save the package/tarball after all convertations (instead of install it)
save_only="--save-only"
;;
--download-only) # HELPOPT: download only the package/tarball (before any convertation)
download_only="--download-only"
;;
--sort) # HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
......@@ -549,7 +553,7 @@ if [ -n "$quiet" ] ; then
fi
# fill
export EPM_OPTIONS="$nodeps $direct $force $verbose $quiet $non_interactive $download_only"
export EPM_OPTIONS="$nodeps $force $verbose $quiet $non_interactive $save_only $download_only"
# if input is not console and run script from file, get pkgs from stdin too
if [ ! -n "$inscript" ] && ! inputisatty && [ -n "$PROGDIR" ] ; then
......
......@@ -326,7 +326,7 @@ epm_install_files()
files="$repacked_pkgs"
fi
if [ -n "$download_only" ] ; then
if [ -n "$save_only" ] ; then
echo
cp -v $files "$EPMCURDIR"
return
......@@ -382,7 +382,7 @@ epm_install_files()
#__epm_remove_tmp_files
fi
if [ -n "$download_only" ] ; then
if [ -n "$save_only" ] ; then
echo
cp -v $files "$EPMCURDIR"
return
......@@ -437,7 +437,7 @@ epm_install_files()
#__epm_remove_tmp_files
fi
if [ -n "$download_only" ] ; then
if [ -n "$save_only" ] ; then
echo
cp -v $files "$EPMCURDIR"
return
......@@ -482,8 +482,8 @@ epm_install_files()
esac
# check download_only before commands without repack supporting
if [ -n "$download_only" ] ; then
# check save_only before commands without repack supporting
if [ -n "$save_only" ] ; then
echo
cp -v $files "$EPMCURDIR"
return
......@@ -733,7 +733,7 @@ epm_install()
epm_install_names $names || return
# save files before install and repack
if [ -n "$direct" ] && [ -n "$download_only" ] ; then
if [ -n "$download_only" ] ; then
echo
cp -v $files "$EPMCURDIR"
return
......
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