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

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

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