| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Embedding an entire acquire stack and HTTP logic in the mirror method
made it rather heavy weight and fragile. This reimplement goes the other
way by doing only the bare minimum in the method itself and instead
redirect the actual download of files to their proper methods.
The reimplementation drops the (in the real world) unused query-string
feature as it isn't really implementable in the new architecture.
|
|
|
|
|
|
| |
We use a wild mixture of C and C++ ways of generating output, so having
a consistent world-view in both styles sounds like a good idea and
should help in preventing regressions.
|
|
|
|
|
|
|
|
|
| |
C++11 adds the 'override' specifier to mark that a method is overriding
a base class method and error out if not. We hide it in the APT_OVERRIDE
macro to ensure that we keep compiling in pre-c++11 standards.
Reported-By: clang-modernize -add-override -override-macros
Git-Dch: Ignore
|
|
|
|
|
|
|
|
| |
Beside being a bit cleaner it hopefully also resolves oddball problems
I have with high levels of parallel jobs.
Git-Dch: Ignore
Reported-By: iwyu (include-what-you-use)
|
| |
|
| |
|
|
|
| |
asking for a suitable mirror
|
| |
|
| |
|
|
|
|
|
|
|
| |
- add missing include
* methods/mirror.{cc,h}:
- add SelectNextMirror() and InitMirrors() functions
- read all mirrors into the AllMirrors vector
|
|
|
|
|
|
| |
- improve the mirror method so that it only updates the mirror list
from the server if we get new indexfiles
- code cleanup
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
- added Dir::State::Mirrors
* doc/examples/configure-index:
- added Acquire::mirror::RefreshInterval
* methods/mirror.{cc,h}:
- download the mirror file into Dir::State::Mirrors
- added RefreshInterval option to not ask for the mirror file too often
|
| |
|
| |
|
|
|