Commit f0542213 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-download: install only latest package from URL with wildcards.

parent bfe72ad0
...@@ -67,8 +67,9 @@ __download_pkg_urls() ...@@ -67,8 +67,9 @@ __download_pkg_urls()
[ -z "$pkg_urls" ] && return [ -z "$pkg_urls" ] && return
for url in $pkg_urls ; do for url in $pkg_urls ; do
local tmppkg=$(mktemp -d) || fatal "failed mktemp -d" local tmppkg=$(mktemp -d) || fatal "failed mktemp -d"
showcmd cd $tmppkg
cd $tmppkg || fatal cd $tmppkg || fatal
if docmd eget "$url" ; then if docmd eget --latest "$url" ; then
local i local i
for i in $(basename $url) ; do for i in $(basename $url) ; do
[ -s "$tmppkg/$i" ] || continue [ -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