Commit 31195704 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm download: use eget --latest if mask is not *.something

parent f3583aed
......@@ -71,7 +71,11 @@ __download_pkg_urls()
docmd chmod $verbose a+rX $tmppkg
showcmd cd $tmppkg
cd $tmppkg || fatal
if docmd eget "$url" ; then
local latest='--latest'
# hack: download all if mask is *.something
basename "$url" | grep -q "^\*\." && latest=''
# download packages
if docmd eget $latest "$url" ; then
local i
for i in *.* ; do
[ -s "$tmppkg/$i" ] || continue
......
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