Commit 3ab7468a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm download: use downloaded name, not URL basename

parent bc8aa876
...@@ -72,11 +72,11 @@ __download_pkg_urls() ...@@ -72,11 +72,11 @@ __download_pkg_urls()
cd $tmppkg || fatal cd $tmppkg || fatal
if docmd eget --latest "$url" ; then if docmd eget --latest "$url" ; then
local i local i
for i in $(basename $url) ; do # use downloaded file
[ -s "$tmppkg/$i" ] || continue i=$(echo *.*)
pkg_files="$pkg_files $tmppkg/$i" [ -s "$tmppkg/$i" ] || continue
to_remove_pkg_files="$to_remove_pkg_files $tmppkg/$i" pkg_files="$pkg_files $tmppkg/$i"
done to_remove_pkg_files="$to_remove_pkg_files $tmppkg/$i"
else else
warning "Failed to download $url, ignoring" warning "Failed to download $url, ignoring"
fi fi
......
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