diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2012-05-29 13:14:36 +0430 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2012-05-29 13:16:07 +0430 |
commit | 9b5e9c1bc2d3e9886d1b49fe32a2e1a433794870 (patch) | |
tree | d0e0f045a13c55da27b2a1ca4b035dcc3ee23fdd | |
parent | b92178558ad6c26d6eafdb9a97b2e2a98b710f26 (diff) | |
download | yum-fast-downloader-9b5e9c1bc2d3e9886d1b49fe32a2e1a433794870.tar.gz yum-fast-downloader-9b5e9c1bc2d3e9886d1b49fe32a2e1a433794870.tar.xz yum-fast-downloader-9b5e9c1bc2d3e9886d1b49fe32a2e1a433794870.zip |
Apparently, aria2 cannot read more than about 4080 characters of URLs from input file
-rw-r--r-- | yum-fast-downloader.py | 4 | ||||
-rw-r--r-- | yum-fast-downloader.spec | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py index fb8c88b..f8b337c 100644 --- a/yum-fast-downloader.py +++ b/yum-fast-downloader.py @@ -82,7 +82,11 @@ def downloadFile(urls, remote_path, local_path, proxies = None): def queueDownload(inputFile, urls, remote_path, local_path, proxies = None): if urls[0].startswith("http://") or urls[0].startswith("ftp://"): + h = "" for url in urls: + h = h + url + remote_path + "\t" + if len(h) > 4080: + break; inputFile.write(url + remote_path + "\t") inputFile.write("\n") inputFile.write(" out={0}.yfd\n".format(os.path.basename(local_path))) diff --git a/yum-fast-downloader.spec b/yum-fast-downloader.spec index 0036fb0..212dc22 100644 --- a/yum-fast-downloader.spec +++ b/yum-fast-downloader.spec @@ -1,6 +1,6 @@ Summary: A fast downloader plugin for yum Name: yum-fast-downloader -Version: 0.5.8 +Version: 0.5.9 Release: 1 License: GPLv2+ Group: System Environment/Base @@ -34,6 +34,9 @@ install -m 755 %{name}-finalize $RPM_BUILD_ROOT/usr/libexec/ /usr/libexec/* %changelog +* Tue May 29 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 0.5.9-1 +- Make sure that URL line is not too long for aria2 + * Wed Oct 19 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 0.5.8-1 - Include repository name in output when downloading metadata files |