Age | Commit message (Collapse) | Author |
|
|
|
Reported-By: cppcheck
Gbp-Dch: Ignore
|
|
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.
|
|
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)
|
|
Git-Dch: Ignore
Reported-By: gcc -Wpedantic
|
|
Git-Dch: Ignore
|
|
|
|
|
|
done on the mirco-optimazation level, so lets fix them:
(performance) Possible inefficient checking for emptiness.
(performance) Prefer prefix ++/-- operators for non-primitive types.
|
|
Niels Thykier, thanks! (Closes: #622805)
|
|
- ensure that va_list is not invalid in second try
|
|
- remove 400 char size limit of error messages (LP: #365611)
|
|
* cmdline/apt-cache.cc:
- use Notice instead of Error in the CacheSetHelper messages
for compat reasons. Otherwise tools like sbuild blow up
|
|
- docstring cleanup
|
|
- remove constness of va_list parameter to fix build on amd64 and co
Thanks Eric Valette! (Closes: #588610)
|
|
|
|
- complete rewrite but use the same API
- add NOTICE and DEBUG as new types of a message
|
|
of GlobalError::Errno and WarningE (as it described in the comments of
these methods)
|
|
|
|
|
|
Author: jgg
Date: 2002-03-26 07:38:57 GMT
Use std C++ header names for includes
|
|
Author: jgg
Date: 2001-05-07 05:25:13 GMT
G++3 fixes from Randolph
|
|
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode
|
|
Author: jgg
Date: 1999-08-08 07:24:54 GMT
Remove extra #error
|
|
Author: jgg
Date: 1999-08-05 05:55:45 GMT
Made pthread optional
|
|
Author: jgg
Date: 1999-01-18 06:20:07 GMT
Dsync merge
|
|
Author: jgg
Date: 1998-09-18 02:42:38 GMT
Sync
|
|
Author: jgg
Date: 1998-09-12 02:46:25 GMT
Sync
|
|
Author: jgg
Date: 1998-07-12 23:58:20 GMT
First draft of make system and name change to apt-pkg
|
|
Author: jgg
Date: 1998-07-07 04:17:00 GMT
Sync
|
|
Author: jgg
Date: 1998-07-02 02:58:12 GMT
Base revisions
|