summaryrefslogtreecommitdiff
path: root/methods/mirror.cc
AgeCommit message (Collapse)Author
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies
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)
2014-03-13warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: extra ‘;’ [-Wpedantic]David Kalnischkies
Git-Dch: Ignore Reported-By: gcc -Wpedantic
2014-02-22Fix typos in documentation (codespell)Michael Vogt
2014-01-16correct some style/performance/warnings from cppcheckDavid Kalnischkies
The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
2013-06-06Fix double free (closes: #711045)Michael Vogt
* 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 Geissert
- generate an equal sign also for the first arch (Closes: #669142)
2012-03-20* methods/rred.cc:David Kalnischkies
- 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 Kalnischkies
non-primitive types."
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies
2011-09-13merge with debian/experimentalDavid Kalnischkies
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2011-08-15merged from lp:~mvo/apt/mvoMichael Vogt
2011-08-11follow the recommendation of cppcheck to make some method methods (scnr)David Kalnischkies
const and initial mostly Debug member values in the constructors
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies
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 Vogt
- 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 Vogt
asking for a suitable mirror
2011-06-07* methods/mirror.cc:Michael Vogt
- 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 Vogt
2011-03-24do not crash if the mirror file fails to downloadMichael Vogt
2011-03-24merge fix from Matt Zimmerman, many thanks (LP: #741098)Michael Vogt
2011-03-14methods/mirror.cc: randomize only based on hostnameMichael Vogt
2011-03-14methods/mirror.cc: init random seed at startupMichael Vogt
2011-03-14randomize mirror list to ensure more even loadMichael Vogt
2011-03-14* mirror method:Michael Vogt
- when downloading data, show the mirror being used
2011-03-11methods/mirror.cc: improve debug output and fix selecting the next mirrorMichael Vogt
2010-06-09fix compiler warning in the new mirror codeDavid Kalnischkies
2010-06-02methods/mirror.cc: debug improvementsMichael Vogt
2010-06-02implement Fail-Ignore bool in FetchItem that tells the method that a failure ↵Michael Vogt
of this item is ok and does not need to be tried on all mirrors
2010-06-02methods/mirror.cc: simplify uri.startswith()Michael Vogt
2010-06-02methods/mirrors.cc: make cycle through the mirrors work properlyMichael Vogt
2010-06-02methods/mirror.cc: remove Acquire::Mirror::RefreshInterval (not really useful)Michael Vogt
2010-06-02improve error message if mirror method failsMichael Vogt
2010-06-02methods/mirror.cc: on fail try the next mirrorMichael Vogt
2010-06-02* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- 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 Vogt
- 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 Vogt
- only update mirror list on IndexFile updates
2007-11-28methods/mirror.{cc,h}:Michael Vogt
- 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 Vogt
2007-02-06* apt-pkg/acquire-item.cc:Michael Vogt
- 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 Vogt
- 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 Vogt
2007-02-05* use pkgAcqMethod::FailReason() for consistent error reportingMichael Vogt
2007-02-01* commited the latest mirror failure detection codeMichael Vogt
2007-01-24make the mirror failures actually produce a error messageMichael Vogt
2007-01-17* mirror-failure.py: example mirror failure cgiMichael Vogt
* methods/mirror.cc: prepare for the failure submit
2007-01-17* basic error reporting from apt in place now (ReportMirrorFailures())Michael Vogt
2007-01-08* methods/mirror.cc:Michael Vogt
- updated the TODO
2007-01-08* implemented proper mirror list cleanupMichael Vogt
2007-01-08* methods/mirror.cc:Michael Vogt
- implemented simple Clean() implementation based on the time of the last access for a mirror file