]> git.ipfire.org Git - thirdparty/lxc.git/commit
download: Improve cache handling
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 14 Jan 2014 20:02:42 +0000 (15:02 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 14 Jan 2014 20:58:03 +0000 (15:58 -0500)
commit9accc2efea59a685942501c13e8eb7a21f74a5f6
treea2d603dff9516f59ac3b9b179b1039a2c682d3bf
parent10a5fab6f3ad5cab234b198da31633e41c8ee364
download: Improve cache handling

This adds a new --force-cache parameter which will force use of the
cache even for expired images.

An expired image is now only flushed from the cache once a new one is
successfuly downloaded (to avoid destroying the local cache when the
host doesn't have internet connectivity).

The ID of the build in cache is also tracked so that we don't
re-download something we already have (should only happen if we don't
have a new build published by the time the previous one expires).

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-download.in