diff options
author | Daniel Köster <dk@eada.de> | 2022-02-05 08:36:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 08:36:42 +0300 |
commit | 1b25c07f7829f211587b9608004bf3c69da91af4 (patch) | |
tree | 9d0ecd3d9ce77b3ac542ef25e25bf9d827152c86 | |
parent | 44d92302fdfc606010ba1a5595a08522631a1c65 (diff) |
Add --no-if-modified-since arg to wget call. (#9)
This will cause wget to send a HEAD request allowing
us to check the timestamp and file size.
Co-authored-by: Daniel Köster <koester@iabg.de>
-rwxr-xr-x | apt-mirror | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -264,7 +264,7 @@ sub download_urls if ( $pid == 0 ) { - exec 'wget', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args; + exec 'wget', '--no-if-modified-since', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args; # shouldn't reach this unless exec fails die("\n\nCould not run wget, please make sure its installed and in your path\n\n"); |