Commit ab0518c4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm download: add epm clean to fix downloading when the package already in the cache

parent 663c53eb
......@@ -211,6 +211,9 @@ __epm_download_alt()
return
fi
info "Cleaning apt cache for correct result ..."
epm --quiet clean
# old systems ignore reinstall ?
for pkg in "$@" ; do
for i in $(sudocmd apt-get install -y --print-uris --reinstall "$pkg" | cut -f1 -d " " | grep ".rpm'$" | sed -e "s|^'||" -e "s|'$||") ; do
......
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