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