Displaying 6 results from an estimated 6 matches for "bad_status_code".
2014 Feb 11
4
[PATCH 0/3] virt-builder: copy local files instead of using curl
Hi,
this patch serie does a small optimisation in virt-builder, i.e. make
its internal Downloader just copy files when the source is a local URI,
instead of spawn curl in this case too.
Pino Toscano (3):
builder: isolate C libraries in an own OCAMLCLIBS
builder: prepare for different per-protocol download actions
builder: do a copy when downloading local files
builder/Makefile.am | 13
2015 Mar 18
0
[PATCH 2/2] builder: support for download resume
...to the final filename.
*)
let filename_new = filename ^ "." ^ string_random8 () in
- unlink_on_exit filename_new;
(match parseduri.URI.protocol with
| "file" ->
@@ -115,11 +114,20 @@ and download_to ~prog t ?(progress_bar = false) ~proxy uri filename =
if bad_status_code status_code then
error (f_"failed to download %s: HTTP status code %s") uri status_code;
+ let cmd = sprintf "ls %s.* 2>/dev/null" filename in
+ let lines = if continue
+ then external_command ~prog ?ignore_error:(Some true) cmd
+ else [] in
+ let...
2015 Mar 18
5
[PATCH 0/2] [RFE] virt-builder should support download resume
This patchset adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Maros Zatko (2):
mllib: allow external_command to return [] on nonzero return value
builder: support for
2015 Mar 23
1
[PATCH v4] [RFE] virt-builder should support download resume
This adds support for resuming downloads in virt-builder.
Partially downloaded image is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Fixes RHBZ#1198344
Ammended for forgotten unlink_on_exit and fixed call with optional
aguments.
Maros Zatko (1):
2015 Mar 23
2
[PATCH v3] [RFE] virt-builder should support download resume
This adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Fixes RHBZ#1198344
Ammended for forgotten unlink_on_exit.
Maros Zatko (1):
builder: support for download resume
2015 Mar 20
2
[PATCH] [RFE] virt-builder should support download resume
This patchset adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Fixes RHBZ#1198344
*** BLURB HERE ***
Maros Zatko (1):
builder: support for download resume