diff options
author | Georgi Georgiev <310867+chutzimir@users.noreply.github.com> | 2022-07-13 17:58:05 +0300 |
---|---|---|
committer | Georgi Georgiev <310867+chutzimir@users.noreply.github.com> | 2022-10-17 17:32:07 +0300 |
commit | dde1257c2cebe628802d27e9471e288cd8dc12b5 (patch) | |
tree | fa31851db698094ede1ecb5d385097b903cf7413 | |
parent | 207f8a51c0c7ae7f2fe0ad23242b6976950347df (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-x | apt-mirror | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ) |