summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/error.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-09-14avoid using global PendingError to avoid failing too often too soonDavid Kalnischkies1-15/+13
Our error reporting is historically grown into some kind of mess. A while ago I implemented stacking for the global error which is used in this commit now to wrap calls to functions which do not report (all) errors via return, so that only failures in those calls cause a failure to propergate down the chain rather than failing if anything (potentially totally unrelated) has failed at some point in the past. This way we can avoid stopping the entire acquire process just because a single source produced an error for example. It also means that after the acquire process the cache is generated – even if the acquire process had failures – as we still have the old good data around we can and should generate a cache for (again). There are probably more instances of this hiding, but all these looked like the easiest to work with and fix with reasonable (aka net-positive) effects.
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-1/+3
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: extra ‘;’ [-Wpedantic]David Kalnischkies1-1/+1
Git-Dch: Ignore Reported-By: gcc -Wpedantic
2013-07-26proper cleanup varargs in _error (uncovered by Coverity)David Kalnischkies1-4/+6
Git-Dch: Ignore
2011-09-13merge with debian/experimentalDavid Kalnischkies1-3/+3
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-2/+3
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies1-3/+3
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-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies1-0/+2
Niels Thykier, thanks! (Closes: #622805)
2011-02-15* apt-pkg/contrib/error.cc:David Kalnischkies1-92/+77
- ensure that va_list is not invalid in second try
2011-02-07* apt-pkg/contrib/error.cc:David Kalnischkies1-6/+25
- remove 400 char size limit of error messages (LP: #365611)
2010-07-30 - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies1-0/+16
* cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
2010-07-29* apt-pkg/contrib/error.{cc,h}Michael Vogt1-2/+2
- docstring cleanup
2010-07-10* apt-pkg/contrib/error.{cc,h}:David Kalnischkies1-5/+4
- remove constness of va_list parameter to fix build on amd64 and co Thanks Eric Valette! (Closes: #588610)
2010-06-25add a simple stack handling to be able to delay error handlingDavid Kalnischkies1-1/+31
2010-06-25* apt-pkg/contrib/error.{cc,h}:David Kalnischkies1-178/+155
- complete rewrite but use the same API - add NOTICE and DEBUG as new types of a message
2009-07-15[contrib/error.cc] place a colon between errno and error text in outputDavid Kalnischkies1-6/+7
of GlobalError::Errno and WarningE (as it described in the comments of these methods)
2007-09-10* make apt build with g++ 4.3Michael Vogt1-1/+3
2007-06-08* remove all the remaining #pragma implementationMichael Vogt1-4/+0
2004-09-20Use std C++ header names for includesArch Librarian1-2/+2
Author: jgg Date: 2002-03-26 07:38:57 GMT Use std C++ header names for includes
2004-09-20G++3 fixes from RandolphArch Librarian1-2/+5
Author: jgg Date: 2001-05-07 05:25:13 GMT G++3 fixes from Randolph
2004-09-20Join with aliencodeArch Librarian1-2/+2
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20Remove extra #errorArch Librarian1-2/+1
Author: jgg Date: 1999-08-08 07:24:54 GMT Remove extra #error
2004-09-20Made pthread optionalArch Librarian1-2/+4
Author: jgg Date: 1999-08-05 05:55:45 GMT Made pthread optional
2004-09-20Dsync mergeArch Librarian1-7/+8
Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge
2004-09-20SyncArch Librarian1-1/+27
Author: jgg Date: 1998-09-18 02:42:38 GMT Sync
2004-09-20SyncArch Librarian1-3/+34
Author: jgg Date: 1998-09-12 02:46:25 GMT Sync
2004-09-20First draft of make system and name change to apt-pkgArch Librarian1-3/+3
Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg
2004-09-20SyncArch Librarian1-19/+55
Author: jgg Date: 1998-07-07 04:17:00 GMT Sync
2004-09-20Base revisionsArch Librarian1-0/+139
Author: jgg Date: 1998-07-02 02:58:12 GMT Base revisions