Comments (8)
I am having to run a clumsy script to delete partial downloads. It would be really nice if apt-mirror could handle this.
from apt-mirror.
The issue here is that the wget
call is not passed the --continue
flag (-c
), and as such the script will not continue and existing file, but will assume that which is present is complete. The assumption that the file being present means that it is complete breaks on slow and/or intermittent connections to a remote.
from apt-mirror.
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;
if ( $stage eq 'archive')
{
exec 'wget', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-c', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args;
}
else
{
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;
}
# shouldn't reach this unless exec fails
die("\n\nCould not run wget, please make sure its installed and in your path\n\n");
}
from apt-mirror.
What here isn't clear in a code?
We load indexes completely, files with a broken download resume flag.
These are TWO options but not ONE line!!!!
from apt-mirror.
dewetblomerus,
I gave a code.
- We load indexes ALWAYS.
- Если файлы пакетов не загружены полностью, мы продолжаем.
- There error at a distance old packets.
4.....) My comments don't accept!
from apt-mirror.
from apt-mirror.
@sfinexer I see you add the -c
flag if stage eq 'archive'
.
My understanding is that it will solve the problem.
from apt-mirror.
dewetblomerus,
And still correct start of cleaning of old packets!!!
"postmirror_script" => '$var_path/clean.sh',
from apt-mirror.
Related Issues (20)
- Issue with index files and icons...
- New maintainer HOT 1
- Some packages are not downloaded HOT 4
- apt-mirror silently fails with incorrect uris HOT 1
- Errors: Can't copy - SHA256 are identical (not copied) HOT 2
- local repo check HOT 1
- Is there a way to mirror appstream catalog metadata with the help of apt-mirror (Ubuntu) ?
- Failed to fetch http://x.x.x.x/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/jammy/main/cnf/Commands-amd64 HOT 25
- [Resolved]The planned task for apt-mirror was not executed on Ubuntu 20.04.6 LTS? HOT 17
- Does not complete the interrupted download. HOT 10
- apt-file requires Contents-all.gz file that apt-mirror does not fetch from source HOT 2
- Feature request: mirror.list.d for including additional mirror entries
- New Mozilla apt repo does not work with apt-mirror HOT 5
- Mirroring microsoft repositories seems to not work HOT 4
- Apt Mirror Warning HOT 1
- "Delta"-sync after initial full pull of repos? HOT 1
- Release files not downloading HOT 1
- Need to manage a local APT package mirror with custom tags using.
- Apt-mirror outbound traffic is high HOT 2
- apt-mirror can't deal with inRelease file having space after `<Hash_Algorithm>:` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apt-mirror.