Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Stifler6996/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Köster <dk@eada.de>2022-02-05 08:36:42 +0300
committerGitHub <noreply@github.com>2022-02-05 08:36:42 +0300
commit1b25c07f7829f211587b9608004bf3c69da91af4 (patch)
tree9d0ecd3d9ce77b3ac542ef25e25bf9d827152c86
parent44d92302fdfc606010ba1a5595a08522631a1c65 (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-xapt-mirror2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-mirror b/apt-mirror
index 8f36d34..3e63028 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -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");