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

github.com/apt-mirror/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Georgiev <310867+chutzimir@users.noreply.github.com>2022-07-13 17:58:05 +0300
committerGeorgi Georgiev <310867+chutzimir@users.noreply.github.com>2022-10-17 17:32:07 +0300
commitdde1257c2cebe628802d27e9471e288cd8dc12b5 (patch)
treefa31851db698094ede1ecb5d385097b903cf7413
parent207f8a51c0c7ae7f2fe0ad23242b6976950347df (diff)
Resume mirroring after an interrupted state
If wget gets interrupted the currently downloading file will be incomplete, and will have a very recent timestamp. In this situation, wget will not re-download the file since it will appear to be more recent than the file it is trying to download. "--no-if-modified-since" works around this problem by ignoring the timestamp of the local file.
-rwxr-xr-xapt-mirror1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-mirror b/apt-mirror
index eff86cb..8323893 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -256,6 +256,7 @@ sub download_urls
if ( length( get_variable("proxy_user") ) ) { push( @args, "-e proxy_user=" . get_variable("proxy_user") ); }
if ( length( get_variable("proxy_password") ) ) { push( @args, "-e proxy_password=" . get_variable("proxy_password") ); }
}
+ push @args, "--no-if-modified-since";
print "Downloading " . scalar(@urls) . " $stage files using $nthreads threads...\n";
while ( scalar @urls )