summaryrefslogtreecommitdiff
path: root/methods/mirror.h
Commit message (Collapse)AuthorAgeFilesLines
* reimplement and simplify mirror:// methodDavid Kalnischkies2018-01-031-57/+0
| | | | | | | | | | 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.
* use std::locale::global instead of setlocaleDavid Kalnischkies2016-05-281-4/+1
| | | | | | 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.
* add c++11 override marker to overridden methodsDavid Kalnischkies2015-08-101-5/+5
| | | | | | | | | 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
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-0/+2
| | | | | | | | 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)
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-1/+1
|
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-12/+13
|
* append the dist (e.g. sid, wheezy) as a query string whenMichael Vogt2011-06-071-0/+1
| | | asking for a suitable mirror
* randomize mirror list to ensure more even loadMichael Vogt2011-03-141-0/+1
|
* methods/mirrors.cc: make cycle through the mirrors work properlyMichael Vogt2010-06-021-1/+2
|
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-06-021-1/+3
| | | | | | | - add missing include * methods/mirror.{cc,h}: - add SelectNextMirror() and InitMirrors() functions - read all mirrors into the AllMirrors vector
* methods/mirror.{cc,h}:Michael Vogt2007-11-281-3/+4
| | | | | | - improve the mirror method so that it only updates the mirror list from the server if we get new indexfiles - code cleanup
* * commited the latest mirror failure detection codeMichael Vogt2007-02-011-1/+0
|
* * basic error reporting from apt in place now (ReportMirrorFailures())Michael Vogt2007-01-171-0/+1
|
* * apt-pkg/init.cc:Michael Vogt2007-01-081-0/+1
| | | | | | | | | - 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
* * todo addedMichael Vogt2006-11-291-0/+3
|
* * working mirror implementation based on http methodMichael Vogt2006-11-291-4/+11
|
* * prototype of mirror method addedMichael Vogt2006-11-291-0/+40