diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:02:00 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:02:00 -0300 |
commit | af8561de2bdefd5a1cf6f32be08323d5f271fe9b (patch) | |
tree | 763bc84824a43a69168ce6f3eeb6d75c5e1c40f4 /src | |
parent | c98e167122252dad9e304259bb653e5d0402f1fc (diff) | |
download | luarocks-af8561de2bdefd5a1cf6f32be08323d5f271fe9b.tar.gz luarocks-af8561de2bdefd5a1cf6f32be08323d5f271fe9b.tar.bz2 luarocks-af8561de2bdefd5a1cf6f32be08323d5f271fe9b.zip |
Document cache option.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fetch.lua | 2 | ||||
-rw-r--r-- | src/luarocks/fs/tools.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 6f8dfc0b..dc467d19 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua | |||
@@ -24,6 +24,8 @@ end | |||
24 | -- resulting local filename of the remote file as the basename of the URL; | 24 | -- resulting local filename of the remote file as the basename of the URL; |
25 | -- if that is not correct (due to a redirection, for example), the local | 25 | -- if that is not correct (due to a redirection, for example), the local |
26 | -- filename can be given explicitly as this second argument. | 26 | -- filename can be given explicitly as this second argument. |
27 | -- @param cache boolean: compare remote timestamps via HTTP HEAD prior to | ||
28 | -- re-downloading the file. | ||
27 | -- @return string or (nil, string, [string]): the absolute local pathname for the | 29 | -- @return string or (nil, string, [string]): the absolute local pathname for the |
28 | -- fetched file, or nil and a message in case of errors, followed by | 30 | -- fetched file, or nil and a message in case of errors, followed by |
29 | -- an optional error code. | 31 | -- an optional error code. |
diff --git a/src/luarocks/fs/tools.lua b/src/luarocks/fs/tools.lua index 991c25cb..de216353 100644 --- a/src/luarocks/fs/tools.lua +++ b/src/luarocks/fs/tools.lua | |||
@@ -92,6 +92,8 @@ end | |||
92 | -- resulting local filename of the remote file as the basename of the URL; | 92 | -- resulting local filename of the remote file as the basename of the URL; |
93 | -- if that is not correct (due to a redirection, for example), the local | 93 | -- if that is not correct (due to a redirection, for example), the local |
94 | -- filename can be given explicitly as this second argument. | 94 | -- filename can be given explicitly as this second argument. |
95 | -- @param cache boolean: compare remote timestamps via HTTP HEAD prior to | ||
96 | -- re-downloading the file. | ||
95 | -- @return (boolean, string): true and the filename on success, | 97 | -- @return (boolean, string): true and the filename on success, |
96 | -- false and the error message on failure. | 98 | -- false and the error message on failure. |
97 | function tools.use_downloader(url, filename, cache) | 99 | function tools.use_downloader(url, filename, cache) |