Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-11-19 | ignore lost+found in private directory cleanup | David Kalnischkies | |
In ce1f3a2c we started warning about failing unlinking, which we consistently do for directories. That isn't a problem as directories usually aren't in the places we do want to clean up – with the potential exeception of "lost+found", so lets ignore it like we ignore our own partial/ subdirectory. Closes: 805424 | |||
2015-11-04 | wrap every unlink call to check for != /dev/null | David Kalnischkies | |
Unlinking /dev/null is bad, we shouldn't do that. Also, we should print at least a warning if we tried to unlink a file but didn't manage to pull it of (ignoring the case were the file is /dev/null or doesn't exist in the first place). This got triggered by a relatively unlikely to cause problem in pkgAcquire::Worker::PrepareFiles which would while temporary uncompressed files (which are set to keep compressed) figure out that to files are the same and prepare for sharing by deleting them. Bad move. That also shows why not printing a warning is a bad idea as this hide the error for in non-root test runs. Git-Dch: Ignore | |||
2014-03-13 | cleanup headers and especially #includes everywhere | David 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-13 | warning: unused parameter ‘foo’ [-Wunused-parameter] | David Kalnischkies | |
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore | |||
2014-03-13 | warning: extra ‘;’ [-Wpedantic] | David Kalnischkies | |
Git-Dch: Ignore Reported-By: gcc -Wpedantic | |||
2014-02-22 | Fix typos in documentation (codespell) | Michael Vogt | |
2014-01-16 | correct some style/performance/warnings from cppcheck | David 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-06 | Fix 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-05 | micro-optimize "(performance) Prefer prefix ++/-- operators for ↵ | David Kalnischkies | |
non-primitive types." | |||
2011-09-19 | use forward declaration in headers if possible instead of includes | David Kalnischkies | |
2011-09-13 | merge with debian/experimental | David Kalnischkies | |
2011-09-13 | reorder includes: add <config.h> if needed and include it at first | David Kalnischkies | |
2011-08-15 | merged from lp:~mvo/apt/mvo | Michael Vogt | |
2011-08-11 | follow the recommendation of cppcheck to make some method methods (scnr) | David Kalnischkies | |
const and initial mostly Debug member values in the constructors | |||
2011-08-11 | cppcheck complains about some possible speed improvements which could be | David 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-07 | append the dist (e.g. sid, wheezy) as a query string when | Michael 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-24 | methods/mirror.cc: raise error if the mirror file can not be read | Michael Vogt | |
2011-03-24 | do not crash if the mirror file fails to download | Michael Vogt | |
2011-03-24 | merge fix from Matt Zimmerman, many thanks (LP: #741098) | Michael Vogt | |
2011-03-14 | methods/mirror.cc: randomize only based on hostname | Michael Vogt | |
2011-03-14 | methods/mirror.cc: init random seed at startup | Michael Vogt | |
2011-03-14 | randomize mirror list to ensure more even load | Michael Vogt | |
2011-03-14 | * mirror method: | Michael Vogt | |
- when downloading data, show the mirror being used | |||
2011-03-11 | methods/mirror.cc: improve debug output and fix selecting the next mirror | Michael Vogt | |
2010-06-09 | fix compiler warning in the new mirror code | David Kalnischkies | |
2010-06-02 | methods/mirror.cc: debug improvements | Michael Vogt | |
2010-06-02 | implement 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-02 | methods/mirror.cc: simplify uri.startswith() | Michael Vogt | |
2010-06-02 | methods/mirrors.cc: make cycle through the mirrors work properly | Michael Vogt | |
2010-06-02 | methods/mirror.cc: remove Acquire::Mirror::RefreshInterval (not really useful) | Michael Vogt | |
2010-06-02 | improve error message if mirror method fails | Michael Vogt | |
2010-06-02 | methods/mirror.cc: on fail try the next mirror | Michael 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-28 | methods/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 branch | Michael 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 mirror | Michael Vogt | |
2007-02-05 | * use pkgAcqMethod::FailReason() for consistent error reporting | Michael Vogt | |
2007-02-01 | * commited the latest mirror failure detection code | Michael Vogt | |
2007-01-24 | make the mirror failures actually produce a error message | Michael Vogt | |
2007-01-17 | * mirror-failure.py: example mirror failure cgi | Michael 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 |