diff options
Diffstat (limited to 'yum-fast-downloader.py')
-rw-r--r-- | yum-fast-downloader.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py index b012c53..49e9918 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))) |