Commit e3cd9624 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-download: __download_pkg_urls(): add workaround for spaces in downloaded files

parent 58047ecb
......@@ -86,6 +86,12 @@ __download_pkg_urls()
[ "$i" = "*" ] && warning "Incorrect true status from eget. No saved files from download $url, ignoring" && continue
[ -s "$tmppkg/$i" ] || continue
chmod $verbose a+r "$tmppkg/$i"
local si="${i/ /}"
if [ "$si" != "$i" ] ; then
info "Space detected in the downloaded file '$i', removing spaces ..."
mv -v "$tmppkg/$i" "$tmppkg/$si"
i="$si"
fi
[ -n "$pkg_files" ] && pkg_files="$pkg_files $tmppkg/$i" || pkg_files="$tmppkg/$i"
[ -n "$pkg_urls_downloaded" ] && pkg_urls_downloaded="$pkg_urls_downloaded $url" || pkg_urls_downloaded="$url"
done
......
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