diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2014-10-12 02:17:13 +0330 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2014-10-12 02:17:13 +0330 |
commit | d396935243133b5fe1c7a288209957e26e9192d3 (patch) | |
tree | 3af31ddbbd11664f2e3f55fcd93895713031be13 | |
parent | a2cd1fe6b4f0d1799d502353a439a6f27c59b648 (diff) | |
download | yum-fast-downloader-d396935243133b5fe1c7a288209957e26e9192d3.tar.gz yum-fast-downloader-d396935243133b5fe1c7a288209957e26e9192d3.tar.xz yum-fast-downloader-d396935243133b5fe1c7a288209957e26e9192d3.zip |
Fix downloading from https (and probably other) links
-rwxr-xr-x | urlgrabber-ext-down-yfd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urlgrabber-ext-down-yfd b/urlgrabber-ext-down-yfd index 9aa93b1..1760653 100755 --- a/urlgrabber-ext-down-yfd +++ b/urlgrabber-ext-down-yfd @@ -54,7 +54,7 @@ def _getAria2CArgs(urls, remote_path, local_path, proxies = None): return args; def downloadFile(urls, remote_path, local_path, proxies = None): - if urls[0].startswith("http://") or urls[0].startswith("ftp://"): + if not urls[0].startswith("file:"): args = _getAria2CArgs(urls, remote_path, local_path) popen = subprocess.Popen(args, stdout=2) popen.wait() |