Commit 1f16d1f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack: add support for --download-only

parent fcb78296
...@@ -100,6 +100,7 @@ short= ...@@ -100,6 +100,7 @@ short=
direct= direct=
sort= sort=
non_interactive=$EPM_AUTO non_interactive=$EPM_AUTO
download_only=
interactive= interactive=
force_yes= force_yes=
skip_installed= skip_installed=
...@@ -466,6 +467,9 @@ check_option() ...@@ -466,6 +467,9 @@ 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
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)
# TODO: how to read arg? # TODO: how to read arg?
sort="$1" sort="$1"
......
...@@ -41,9 +41,11 @@ __epm_pack() ...@@ -41,9 +41,11 @@ __epm_pack()
$repackcode $tarname $filefortarname || fatal $repackcode $tarname $filefortarname || fatal
returntarname="$(cat $filefortarname)" returntarname="$(cat $filefortarname)"
# TODO if [ -n "$download_only" ] ; then
cp $returntarname . cp $returntarname .
exit return
fi
mv $returntarname $tmpdir/ || fatal mv $returntarname $tmpdir/ || fatal
cd $tmpdir || fatal cd $tmpdir || fatal
......
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