Commit 40629506 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-download: print eget line, add fatal if package is missed

parent 8bee8b33
...@@ -212,6 +212,10 @@ __epm_download_alt() ...@@ -212,6 +212,10 @@ __epm_download_alt()
shift shift
fi fi
if [ -z "$@" ] ; then
fatal "Missed package name"
fi
load_helper epm-sh-altlinux load_helper epm-sh-altlinux
# TODO: enable if install --download-only will works # TODO: enable if install --download-only will works
...@@ -244,7 +248,7 @@ __epm_download_alt() ...@@ -244,7 +248,7 @@ __epm_download_alt()
for i in $(sudocmd apt-get install -y --print-uris --reinstall "$pkg" | cut -f1 -d " " | grep ".rpm'$" | sed -e "s|^'||" -e "s|'$||") ; do for i in $(sudocmd apt-get install -y --print-uris --reinstall "$pkg" | cut -f1 -d " " | grep ".rpm'$" | sed -e "s|^'||" -e "s|'$||") ; do
echo "$(basename "$i")" | grep -q "^$pkg" || continue echo "$(basename "$i")" | grep -q "^$pkg" || continue
[ -n "$print_url" ] && echo "$i" && continue [ -n "$print_url" ] && echo "$i" && continue
eget "$i" docmd eget "$i"
done done
done done
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