summaryrefslogtreecommitdiff
path: root/methods/mirror.cc
AgeCommit message (Collapse)AuthorFilesLines
2013-06-06Fix double free (closes: #711045)Michael Vogt1-0/+3
* Fix double free (closes: #711045) * Fix crash when the "mirror" method does not find any entry (closes: #699303)
2012-05-14* methods/mirror.cc:Raphael Geissert1-1/+1
- generate an equal sign also for the first arch (Closes: #669142)
2012-03-20* methods/rred.cc:David Kalnischkies1-2/+3
- check return of writev() as gcc recommends * methods/mirror.cc: - check return of chdir() as gcc recommends * apt-pkg/deb/dpkgpm.cc: - check return of write() a gcc recommends * apt-inst/deb/debfile.cc: - check return of chdir() as gcc recommends * apt-inst/deb/dpkgdb.cc: - check return of chdir() as gcc recommends
2012-03-05micro-optimize "(performance) Prefer prefix ++/-- operators for ↵David Kalnischkies1-1/+1
non-primitive types."
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies1-1/+2
2011-09-13merge with debian/experimentalDavid Kalnischkies1-4/+20
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-1/+3
2011-08-15merged from lp:~mvo/apt/mvoMichael Vogt1-1/+17
2011-08-11follow the recommendation of cppcheck to make some method methods (scnr)David Kalnischkies1-1/+1
const and initial mostly Debug member values in the constructors
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies1-2/+2
done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
2011-08-11* methods/mirror.cc:Michael Vogt1-1/+17
- include the architecture(s) in the query string as well so that the server can make better decisions
2011-06-07append the dist (e.g. sid, wheezy) as a query string whenMichael Vogt1-0/+5
asking for a suitable mirror
2011-06-07* methods/mirror.cc:Michael Vogt1-2/+12
- ignore lines starting with "#" in the mirror file - ignore non http urls in the mirrors
2011-03-24methods/mirror.cc: raise error if the mirror file can not be readMichael Vogt1-0/+7
2011-03-24do not crash if the mirror file fails to downloadMichael Vogt1-2/+5
2011-03-24merge fix from Matt Zimmerman, many thanks (LP: #741098)Michael Vogt1-1/+3
2011-03-14methods/mirror.cc: randomize only based on hostnameMichael Vogt1-4/+15
2011-03-14methods/mirror.cc: init random seed at startupMichael Vogt1-1/+3
2011-03-14randomize mirror list to ensure more even loadMichael Vogt1-0/+30
2011-03-14* mirror method:Michael Vogt1-0/+4
- when downloading data, show the mirror being used
2011-03-11methods/mirror.cc: improve debug output and fix selecting the next mirrorMichael Vogt1-4/+9
2010-06-09fix compiler warning in the new mirror codeDavid Kalnischkies1-11/+16
2010-06-02methods/mirror.cc: debug improvementsMichael Vogt1-2/+9
2010-06-02implement Fail-Ignore bool in FetchItem that tells the method that a failure ↵Michael Vogt1-12/+11
of this item is ok and does not need to be tried on all mirrors
2010-06-02methods/mirror.cc: simplify uri.startswith()Michael Vogt1-1/+1
2010-06-02methods/mirrors.cc: make cycle through the mirrors work properlyMichael Vogt1-15/+40
2010-06-02methods/mirror.cc: remove Acquire::Mirror::RefreshInterval (not really useful)Michael Vogt1-22/+0
2010-06-02improve error message if mirror method failsMichael Vogt1-6/+8
2010-06-02methods/mirror.cc: on fail try the next mirrorMichael Vogt1-1/+11
2010-06-02* apt-pkg/deb/dpkgpm.cc:Michael Vogt1-7/+23
- add missing include * methods/mirror.{cc,h}: - add SelectNextMirror() and InitMirrors() functions - read all mirrors into the AllMirrors vector
2009-03-19* methods/mirror.cc:Michael Vogt1-2/+16
- when download the mirror file and the server is down, return a propper error message (LP: #278635)
2007-11-28* methods/mirror.{cc,h}:Michael Vogt1-59/+93
- only update mirror list on IndexFile updates
2007-11-28methods/mirror.{cc,h}:Michael Vogt1-59/+93
- improve the mirror method so that it only updates the mirror list from the server if we get new indexfiles - code cleanup
2007-02-06* merged the apt--mirror branchMichael Vogt1-0/+282
2007-02-06* apt-pkg/acquire-item.cc:Michael Vogt1-0/+1
- default to "/usr/lib/apt/apt-report-mirror-failure" * cmdline/apt-report-mirror-failure: - no default comit url for now * debian/rules: - move apt-report-mirror-failure into /usr/lib/apt * doc/examples/configure-index: - more documentation * methods/mirror.cc: - updated TODO
2007-02-05* apt-pkg/acquire-item.cc:Michael Vogt1-3/+6
- use FailReason in pkgAcquire::Item::Failed when available * methods/mirror.cc: - move some debug output into if(Debug)
2007-02-05* get rid of magic mirrorMichael Vogt1-16/+46
2007-02-05* use pkgAcqMethod::FailReason() for consistent error reportingMichael Vogt1-9/+3
2007-02-01* commited the latest mirror failure detection codeMichael Vogt1-41/+4
2007-01-24make the mirror failures actually produce a error messageMichael Vogt1-11/+35
2007-01-17* mirror-failure.py: example mirror failure cgiMichael Vogt1-0/+6
* methods/mirror.cc: prepare for the failure submit
2007-01-17* basic error reporting from apt in place now (ReportMirrorFailures())Michael Vogt1-6/+21
2007-01-08* methods/mirror.cc:Michael Vogt1-5/+9
- updated the TODO
2007-01-08* implemented proper mirror list cleanupMichael Vogt1-18/+21
2007-01-08* methods/mirror.cc:Michael Vogt1-3/+52
- implemented simple Clean() implementation based on the time of the last access for a mirror file
2007-01-08* apt-pkg/init.cc:Michael Vogt1-10/+46
- 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
2006-11-30* methods/mirror.cc:Michael Vogt1-2/+6
- check the complette queue on Fetch() for urls to transform
2006-11-29* more todo itemsMichael Vogt1-2/+3
2006-11-29* todo addedMichael Vogt1-0/+8
2006-11-29* working mirror implementation based on http methodMichael Vogt1-14/+58