Переглянути джерело

Write remote content on stdout with `aria2c` (fixes #619, #534)

`aria2c` doesn't support writing content to stdout. As a workaround,
this patch will use temporary file then write content on stdout once
finished downloading.
pull/620/head
Yamashita, Yuu 10 роки тому
джерело
коміт
c8c40cff21
1 змінених файлів з 3 додано та 1 видалено
  1. +3
    -1
      plugins/python-build/bin/python-build

+ 3
- 1
plugins/python-build/bin/python-build Переглянути файл

@ -340,7 +340,9 @@ http_head_aria2c() {
}
http_get_aria2c() {
aria2c -o "${2:--}" ${ARIA2_OPTS} "$1"
local out="${2:-$(mktemp "out.XXXXXX")}"
aria2c --allow-overwrite=true -o "${out}" ${ARIA2_OPTS} "$1" >&4
[ -n "$2" ] || cat "${out}"
}
http_head_curl() {

Завантаження…
Відмінити
Зберегти