[Yum-devel] [PATCH 3/3] Implement getPackageAsync() and getPackageDone()
Zdenek Pavlas
zpavlas at redhat.com
Wed Jul 27 13:34:44 UTC 2011
> # make a config option for this?
> os.execl('/usr/local/bin/yum-down.sh', '')
This is the download helper I have been using. It uses curl binary to do the job.
Start and stop of each download is logged with '+' and '-' lines.
$ cat /usr/local/bin/yum-down.sh
#! /bin/sh
# A simple external downloader for yum.
while read url; do
echo "$$: + $url" >&2
/usr/bin/curl -s -O "$url"
echo $?
echo "$$: - $url" >&2
done
More information about the Yum-devel
mailing list